Update Dangerfile

This commit is contained in:
Miguel Piedrafita 2016-12-05 20:49:11 +01:00 committed by GitHub
parent 81491c38c6
commit cc6ca35351
1 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,8 @@ fail 'Please replace **[Insert URL to the list here.]** with the URL to the list
fail 'Please replace **[Explain what this list is about and why it should be included here.]** with an explanation of why we should include this list.' if github.pr_body.include? '**[Explain what this list is about and why it should be included here.]**'
# Warn if pull request is not updated
fail 'Please update the Pull Request title to contain the script name' if github.pr_title.include? 'Update README.md'
# Warn if there is [WIP] in the title
warn "PR is classed as Work in Progress" if github.pr_title.include? "[WIP]"
# Warn when there are merge commits in the diff
fail 'Please rebase to get rid of the merge commits in this Pull Request' if git.commits.any? { |c| c.message =~ /^Merge branch 'master'/ }