Skip to content

Add pre-push-check target to Makefile

Pedro Pombeiro requested to merge 26711-pre-push-check into master

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?

  1. Run make setup-pre-push-check and check that .git/hooks/pre-push is created correctly.
  2. Make a change to feature-flags.md and run make pre-push-check.

What are the relevant issue numbers?

Closes #26711 (closed)

Merge request reports