From 22af00307cc04d4826b7eff20097219ae19c858f Mon Sep 17 00:00:00 2001 From: Rizwan Mohamed Ibrahim Date: Thu, 26 Oct 2017 10:47:03 -0700 Subject: [PATCH] Error when editing docs directory Summary: Issue fixed: #963 - [ ] 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. - [X] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md) Closes https://github.com/Instagram/IGListKit/pull/970 Differential Revision: D6161614 Pulled By: rnystrom fbshipit-source-id: 7fcb71a57453ac0be55909030d6934a1701a49ba --- Dangerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dangerfile b/Dangerfile index 88ec77a9..63ec3ec6 100644 --- a/Dangerfile +++ b/Dangerfile @@ -21,8 +21,10 @@ end # Docs are regenerated when releasing has_doc_changes = !git.modified_files.grep(/docs\//).empty? -if has_doc_changes - warn("Docs are regenerated when creating new releases.") +has_doc_gen_title = github.pr_title.include? "#docgen" +if has_doc_changes && !has_doc_gen_title + fail("Docs are regenerated when creating new releases.") + message("Docs are generated by using [Jazzy](https://github.com/realm/jazzy). If you want to contribute, please update [markdown guides](https://github.com/Instagram/IGListKit/tree/master/Guides)") end swiftlint.config_file = '.swiftlint_CI.yml'