Closed timjacobi closed 7 years ago
Hey, @timjacobi - please see my comment in https://github.com/facebook/facebook-instant-articles-rules-editor/pull/15#issuecomment-346335897. I am not sure if we should block the commit because of flow and/or test issues. I'd love to know your thoughts.
Makes sense. What do you think about a pre push hook then?
That takes care of allowing people to commit, but still blocks the pushing to a remote branch (perhaps as a way to ensure you have a backup of your work.) I think it ultimately depends on what we are considering a testable state. I feel the PR signals that state, but I don't have strong feelings against the pre-push approach, and we can always revisit if it becomes an issue for us or the community.
This will run Flow before committing and will stop the commit if Flow returns errors.