Skip to content

ci(trunk): fix duplicate Trunk Check context blocking PRs#759

Merged
ss-o merged 1 commit into
nextfrom
bug-trunk-check-dup-context
May 29, 2026
Merged

ci(trunk): fix duplicate Trunk Check context blocking PRs#759
ss-o merged 1 commit into
nextfrom
bug-trunk-check-dup-context

Conversation

@ss-o
Copy link
Copy Markdown
Member

@ss-o ss-o commented May 29, 2026

Problem (#757)

trunk-check.yml named both the workflow and the job Trunk Check. That collides with the check-run trunk-io/trunk-action posts (also named Trunk Check), producing two identically-named github-actions check-runs on every PR. Under strict branch protection with required context Trunk Check, GitHub can't disambiguate and leaves PRs BLOCKED even when all checks pass (observed on automated zsh-lint docs-sync PRs #756, #758 — both needed admin override).

Fix

Rename the workflow and job to Trunk Code Quality (the org-conventional name per CLAUDE.md, and what z-shell/zsh-lint already uses). The action's posted Trunk Check check-run then remains the single match for the required context — no more collision, no admin override needed.

No change to branch protection required.

Verify

  • This PR's own checks pass and it is mergeable WITHOUT admin override (proving the collision is gone)

… check context

The workflow and job were both named 'Trunk Check', colliding with the check
that trunk-io/trunk-action posts (also 'Trunk Check'). Two identically-named
check-runs confuse strict branch protection (required context 'Trunk Check'),
leaving PRs stuck in BLOCKED even when all checks pass. Renaming to the
org-conventional 'Trunk Code Quality' (matching other repos) leaves the
action's 'Trunk Check' as the sole required context. Fixes #757.
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 29, 2026

Deploying zsh with  Cloudflare Pages  Cloudflare Pages

Latest commit: 01091cc
Status: ✅  Deploy successful!
Preview URL: https://ffc6cd88.zsh.pages.dev
Branch Preview URL: https://bug-trunk-check-dup-context.zsh.pages.dev

View logs

Copilot AI review requested due to automatic review settings May 29, 2026 11:49
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR resolves duplicate Trunk check context naming in CI so strict branch protection can uniquely match the required Trunk Check status emitted by the Trunk action.

Changes:

  • Renames the workflow from Trunk Check to Trunk Code Quality.
  • Renames the workflow job display name to Trunk Code Quality.

@ss-o ss-o merged commit d4e6060 into next May 29, 2026
7 checks passed
@ss-o ss-o deleted the bug-trunk-check-dup-context branch May 29, 2026 11:51
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.

2 participants