Skip to content

Instantly share code, notes, and snippets.

@jgsamudio
Last active May 9, 2020 22:50
Show Gist options
  • Save jgsamudio/f2ab7c6b4b893e4d980a53a9830587e5 to your computer and use it in GitHub Desktop.
Save jgsamudio/f2ab7c6b4b893e4d980a53a9830587e5 to your computer and use it in GitHub Desktop.
// 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