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
This commit is contained in:
Rizwan Mohamed Ibrahim 2017-10-26 10:47:03 -07:00 committed by Facebook Github Bot
parent 65b41d4038
commit 22af00307c

View file

@ -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'