Skip to content

fix(ci): remove double run on PR push - #12

Merged
gre-ledger merged 1 commit into
developfrom
fix/ci-double-run
Jul 17, 2026
Merged

fix(ci): remove double run on PR push#12
gre-ledger merged 1 commit into
developfrom
fix/ci-double-run

Conversation

@gre-ledger

Copy link
Copy Markdown
Collaborator

Summary

  • branches-ignore: [main] was matching every feature branch, so each PR push fired both a push event and a pull_request: synchronize event
  • The two runs landed in different concurrency slots (refs/heads/… vs refs/pull/N/merge) so neither cancelled the other — every PR push burned two CI slots

Fix:

  • branches-ignore: [main]branches: [develop]: push only fires post-merge on develop, PRs are handled exclusively by the pull_request event
  • Concurrency group: github.refgithub.event.pull_request.number || github.ref: PR runs key on PR number so a new develop push doesn't cancel an in-flight PR check

Note

Pushes to feature branches with no open PR no longer trigger CI — that's intentional, since they will once a PR is opened.

Test plan

  • Pushing a commit to this branch only triggers one CI run (via pull_request: synchronize), not two
  • Merging to develop still triggers a CI run (via push: branches: [develop])

branches-ignore: [main] was firing on every feature branch, causing
both push and pull_request events to run in parallel on each PR push.

Switch to branches: [develop] so push only fires on post-merge develop
commits. Fix concurrency group to key on PR number for pull_request
events so feature pushes don't cancel each other's PR checks.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 17, 2026 12:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts the GitHub Actions “[Checks] Pull Request” workflow triggers and concurrency settings to prevent duplicate CI runs on PR pushes, reducing wasted CI capacity in the ts-libs monorepo.

Changes:

  • Restricts push triggers to develop only, leaving PR validation to pull_request events.
  • Updates concurrency grouping to key PR runs by PR number (falling back to github.ref for non-PR events) so cancellations behave as intended.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gre-ledger
gre-ledger marked this pull request as ready for review July 17, 2026 12:48
@gre-ledger
gre-ledger requested a review from a team as a code owner July 17, 2026 12:48
@gre-ledger
gre-ledger merged commit 94db184 into develop Jul 17, 2026
8 checks passed
@gre-ledger
gre-ledger deleted the fix/ci-double-run branch July 17, 2026 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants