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'