Add pre-push-check target to Makefile
What does this MR do?
This is an functionality that frequent contributors can opt-in to by running make setup-pre-push-check
. From then on, Git trigger some checks whenever a branch is pushed, to ensure we haven't forgotten to e.g. run lint or update the feature flags documentation.
Why was this MR needed?
See #26711 (closed)
What's the best way to test this MR?
- Run
make setup-pre-push-check
and check that.git/hooks/pre-push
is created correctly. - Make a change to
feature-flags.md
and runmake pre-push-check
.
What are the relevant issue numbers?
Closes #26711 (closed)