From a5d5213e5bfb3be975d3047904ed5b38680acd49 Mon Sep 17 00:00:00 2001 From: Hesham Salman Date: Thu, 25 May 2017 13:41:11 -0700 Subject: [PATCH] Update Dangerfile to be less noisy, close #792 Summary: Issue fixed: #792 - [ ] All tests pass. Demo project builds and runs. - [ ] I added tests, an experiment, or detailed why my change isn't tested. - [ ] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes. - [ ] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md) Closes https://github.com/Instagram/IGListKit/pull/795 Differential Revision: D5132076 Pulled By: rnystrom fbshipit-source-id: 7d68f842e0244d6c6184982ee434dc4da22cc7c6 --- Dangerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dangerfile b/Dangerfile index 18571079a..0aae64c2e 100644 --- a/Dangerfile +++ b/Dangerfile @@ -9,7 +9,7 @@ warn("Big PR") if git.lines_of_code > 500 # Changelog entries are required for changes to library files. no_changelog_entry = !git.modified_files.include?("CHANGELOG.md") -if has_source_changes && no_changelog_entry && not_declared_trivial +if has_source_changes && no_changelog_entry && not_declared_trivial && git.lines_of_code > 10 fail("Any source code changes should have an entry in CHANGELOG.md.") end