diff --git a/README.md b/README.md index 1d2d3ec581e88dc65a2d9dd3ef40f03dada7906b..da98ab4be2b08ef54ee346dcad6932c0b1a0b19e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # `pre-commit` -> Executes all configured [pre-commit][pre-commit] hooks in the CI +> Executes all configured [pre-commit][pre-commit] hooks in the CI. ## Getting Started diff --git a/templates/pre-commit.yml b/templates/pre-commit.yml index e10fa69bd147078feac2c7f4adf99747be5cd128..7afc4c6b237e264a23ae6867db7c8c21a8ae38b7 100644 --- a/templates/pre-commit.yml +++ b/templates/pre-commit.yml @@ -96,3 +96,6 @@ spec: paths: - $PATCH_FILE when: on_failure + rules: + - if: $CI_MERGE_REQUEST_DIFF_BASE_SHA +