Update Dangerfile

This commit is contained in:
Miguel Piedrafita 2016-12-05 20:54:06 +01:00 committed by GitHub
parent 9af21e89e4
commit 2fa495dffc
1 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,8 @@
message "Hi @#{github.pr_author} thank you for your submission at Awesome-Awesomeness. Be sure that you haven't got any errors below this. For any questions, ping @m1guelpf"
#Check for changes to README.md
has_readme_changes = git.modified_files.include?("README.md")
can_merge = github.pr_json["mergeable"]
warn("This PR cannot be merged yet.", sticky: true) unless can_merge
# Ensure there is a summary for a pull request
fail 'Please provide a summary in the Pull Request description' if github.pr_body.length < 5