From cc6ca35351e39b9480c2b26e5d7ce8150c4cbc8b Mon Sep 17 00:00:00 2001 From: Miguel Piedrafita Date: Mon, 5 Dec 2016 20:49:11 +0100 Subject: [PATCH] Update Dangerfile --- Dangerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dangerfile b/Dangerfile index a08a24f..cb36cee 100644 --- a/Dangerfile +++ b/Dangerfile @@ -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'/ }