Right now the ci/cd pipelines run pre-commit and blubber tests three scenarios for a patch:
- when a patch is submitted or modified
- when a patch is merged
- again after the pipeline is merged
Scenario 3 is a bug and we have a task for it here https://phabricator.wikimedia.org/T353563
Scenario 2 (when a patch is merged into main) doesn't seem to make sense because the patch has already been merged.
This task is about running the pre-commit and blubber tests only in Scenario 1 (when a patch is submitted or modified)