Skip to content

Commit 2c4eec0

Browse files
authored
Updates Dangerfile (Instabug#51)
Update Danger rules to add a reminder to update CHANGELOG.md with every PR.
1 parent c54913a commit 2c4eec0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Dangerfile

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1+
has_app_changes = !git.modified_files.grep(/lib/).empty?
2+
declared_trivial = (github.pr_title + github.pr_body).include?("#trivial") || !has_app_changes || github.pr_labels.include?("trivial")
3+
4+
15
# Make sure PR has a description.
26
if github.pr_body.length < 3 && git.lines_of_code > 10
37
fail "Please provide a summary of the changes in the pull request description."
4-
end
8+
end
9+
10+
if !git.modified_files.include?("CHANGELOG.md") && !declared_trivial
11+
fail("Please include a CHANGELOG entry. \nYou can find it at [CHANGELOG.md](https://github.com/Instabug/Instabug-Flutter/blob/master/CHANGELOG.md).", sticky: false)
12+
end

0 commit comments

Comments
 (0)