A platform for community discussion. Free, open, simple.
uses pr instead of git to check big prs
Joffrey JAFFEUX65a68e4d4d15
diff --git a/Dangerfile b/Dangerfileindex bfbe3a62899..cc598f7c5cf 100644--- a/Dangerfile+++ b/Dangerfile@@ -1,4 +1,4 @@-if git.lines_of_code > 500+if github.pr_json && (github.pr_json["additions"] || 0) > 250 || (github.pr_json["deletions"] || 0) > 250warn("This pull request is big! We prefer smaller PRs whenever possible, as they are easier to review. Can this be split into a few smaller PRs?")end