Last active
May 9, 2020 22:50
-
-
Save jgsamudio/f2ab7c6b4b893e4d980a53a9830587e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MARK: - 4 - Celebrate Milestones | |
var largePRLineCount = 500; | |
let additions: Int = danger.github.pullRequest.additions ?? 0 | |
let deletions: Int = danger.github.pullRequest.deletions ?? 0 | |
if ((additions + deletions) > largePRLineCount) { | |
warn(""" | |
Number of pull request changes is larger than 500! Consider breaking out future changes into smaller pull requests. | |
"""); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment