Skip to content

Skip CI jobs on merge queue branches#334

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 3 commits into
masterfrom
yoann/do-not-run-ci-on-merge-branches
Apr 29, 2026
Merged

Skip CI jobs on merge queue branches#334
gh-worker-dd-mergequeue-cf854d[bot] merged 3 commits into
masterfrom
yoann/do-not-run-ci-on-merge-branches

Conversation

@yoannmoinet

Copy link
Copy Markdown
Member

What and why?

All three CI jobs (unit-test, e2e, lint) were running on mq-working-branch-* pushes triggered by the merge queue. These branches are safe to skip given the repo's contribution level, so we skip the jobs there to save CI minutes.

The push: branches: mq-working-branch-* trigger must stay so GitHub's merge queue sees a workflow run and can mark required checks as "skipped" (rather than "missing", which would block the queue).

How?

Added if: ${{ !startsWith(github.ref_name, 'mq-working-branch-') }} at the job level on all three jobs. When triggered by a merge queue branch the condition is false → jobs skip. For normal PR branches the condition is true → jobs run as before.

yoannmoinet and others added 2 commits April 29, 2026 15:50
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@yoannmoinet
yoannmoinet marked this pull request as ready for review April 29, 2026 20:30
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit edf8290 into master Apr 29, 2026
5 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot deleted the yoann/do-not-run-ci-on-merge-branches branch April 29, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants