Skip to content

Instantly share code, notes, and snippets.

@ardydedase
Created May 8, 2022 00:52
Show Gist options
  • Save ardydedase/b01d77e8305985ef5f857c3391440475 to your computer and use it in GitHub Desktop.
Save ardydedase/b01d77e8305985ef5f857c3391440475 to your computer and use it in GitHub Desktop.
const reviewLargePR = () => {
const bigPRThreshold = 300;
if (danger.github.pr.additions + danger.github.pr.deletions > bigPRThreshold) {
warn(`:exclamation: Pull Request size seems relatively large. If Pull Request contains multiple changes, split each into separate PR for faster, easier review.`);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment