Skip to content

Commit 18849af

Browse files
committed
🎨 Cleanup default Dangerfile
Signed-off-by: Peter Boling <[email protected]>
1 parent 9e2b584 commit 18849af

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dangerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Sometimes it's a README fix, or something like that - which isn't relevant for
2-
# including in a project's CHANGELOG for example
3-
declared_trivial = github.pr_title.include? "#trivial"
1+
# Ideas...
2+
# 1. Check for hashtags in PR title, and disallow changes to changelog?
3+
# e.g. github.pr_title.include? "#trivial"
44

55
# Make it more obvious that a PR is a work in progress and shouldn't be merged yet
66
warn("PR is classed as Work in Progress") if github.pr_title.include? "[WIP]"
@@ -9,5 +9,5 @@ warn("PR is classed as Work in Progress") if github.pr_title.include? "[WIP]"
99
warn("Big PR") if git.lines_of_code > 500
1010

1111
# Don't let testing shortcuts get into master by accident
12-
fail("fdescribe left in tests") if `grep -r fdescribe specs/ `.length > 1
13-
fail("fit left in tests") if `grep -r fit specs/ `.length > 1
12+
raise("fdescribe left in tests") if `grep -r fdescribe specs/ `.length > 1
13+
raise("fit left in tests") if `grep -r fit specs/ `.length > 1

0 commit comments

Comments
 (0)