Compare commits

...

1 Commits

Author SHA1 Message Date
Aleksey Pivovarov 733fed1a7e added changelog danger rule 2016-12-19 00:46:42 +02:00
1 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,12 @@
#Ensure changelog entry
unless github.pr_body.include? "- [x] Trivial change (doesn't require changelog)"
if (git.modified_files.grep(/^Sources\//).count > 0) || (github.pr_body.include? "- [x] New Extension")
if git.modified_files.grep(/^CHANGELOG.md/).count == 0
fail("Making non-trivial change requires changelog entry! Please, set trivial change or add entry to changelog.")
end
end
end
# Contributors should write up some reasoning about the PR, rather than just leave a title # Contributors should write up some reasoning about the PR, rather than just leave a title
if github.pr_body.length < 5 if github.pr_body.length < 5
fail "Please provide a summary in the Pull Request description" fail "Please provide a summary in the Pull Request description"