mirror of
https://github.com/bayandin/awesome-awesomeness.git
synced 2025-04-14 17:33:02 -04:00
Update Dangerfile
This commit is contained in:
parent
81491c38c6
commit
cc6ca35351
1 changed files with 2 additions and 1 deletions
|
@ -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'/ }
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue