Skip to content

ci: run commitlint once per same-repo PR#4795

Merged
escapedcat merged 1 commit into
masterfrom
ci/commitlint-single-run-per-pr
May 29, 2026
Merged

ci: run commitlint once per same-repo PR#4795
escapedcat merged 1 commit into
masterfrom
ci/commitlint-single-run-per-pr

Conversation

@escapedcat

Copy link
Copy Markdown
Member

Scope the push trigger to the default branch so Renovate (and any other same-repo branch) fires only the pull_request event instead of both push and pull_request, which currently runs the Commitlint check twice for a single PR.

Coverage improves rather than regresses: the pull_request path validates the full commit range (--from base --to head), whereas the dropped push run only checked --last (the tip commit). Direct pushes/merges to master still run the --last validation, and fork PRs were already single-run.

Scope the push trigger to the default branch so Renovate (and any other
same-repo branch) fires only the pull_request event instead of both push
and pull_request, which currently runs the Commitlint check twice for a
single PR.

Coverage improves rather than regresses: the pull_request path validates
the full commit range (--from base --to head), whereas the dropped push
run only checked --last (the tip commit). Direct pushes/merges to master
still run the --last validation, and fork PRs were already single-run.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@escapedcat escapedcat merged commit 3648545 into master May 29, 2026
14 checks passed
@escapedcat escapedcat deleted the ci/commitlint-single-run-per-pr branch May 29, 2026 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant