2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-04 08:47:37 +08:00

uses pr instead of git to check big prs

This commit is contained in:
Joffrey JAFFEUX 2018-07-26 10:25:40 -04:00 committed by GitHub
parent a89dd51cae
commit 65a68e4d4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) > 250
warn("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