Skip to content

ci: stamp release-please PR required checks via the checks API - #55

Merged
johncarmack1984 merged 1 commit into
mainfrom
ci/stamp-release-please-checks
Aug 10, 2026
Merged

ci: stamp release-please PR required checks via the checks API#55
johncarmack1984 merged 1 commit into
mainfrom
ci/stamp-release-please-checks

Conversation

@johncarmack1984

Copy link
Copy Markdown
Owner

Why

Round 1 (#54) tried to unstick the release-please PR by dispatching ci.yml onto the release branch. Two failure points, both confirmed on the post-merge run:

  1. The dispatch step skipped. It was guarded by if: prs_created == 'true', but a ci: commit doesn't change the changelog, so release-please logged "PR remained the same" and prs_created was false.
  2. Even unguarded it would fail. gh workflow run ci.yml --ref <branch> requires the workflow file at that ref to contain the workflow_dispatch trigger. The release-please branch is only rebuilt when the changelog changes, so it still carries the pre-ci: dispatch CI onto release-please PRs so required checks report #54 ci.yml with no workflow_dispatch — any main push that doesn't update the release PR leaves the branch stale and the dispatch broken.

The fix

The release workflow now creates the test/npm/deny check runs directly via the Checks API. Only GitHub Apps can create check runs, and GITHUB_TOKEN is the Actions app's installation token, so the stamps are attributed to that app and satisfy the ruleset's app-pinned required contexts; a skipped conclusion counts as passing (the same conclusion the self-skipping jobs already reported on 0.7.0/0.8.0). This has zero dependence on release-please outputs, the branch's file contents, or workflow triggers.

The workflow_dispatch trigger and the ref_name skip guards in ci.yml stay for manual runs; a normal branch PR still runs the full suite as its required checks.

Dispatching CI onto the release-please branch (#54) never reported the required checks: prs_created is false on changelog-neutral pushes so the dispatch step skipped, and even unguarded it would fail because the release branch is only rebuilt when the changelog changes, so its stale ci.yml lacks the workflow_dispatch trigger.

Instead, the release workflow now creates the test/npm/deny check runs directly via the Checks API with GITHUB_TOKEN. Only GitHub Apps can create check runs, and GITHUB_TOKEN is the Actions app's token, so the stamps satisfy the ruleset's app-pinned contexts; a 'skipped' conclusion counts as passing. This has zero dependence on release-please outputs, the branch's file contents, or workflow triggers.
@johncarmack1984
johncarmack1984 merged commit a9bdfe7 into main Aug 10, 2026
7 checks passed
@johncarmack1984
johncarmack1984 deleted the ci/stamp-release-please-checks branch August 10, 2026 15:12
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.

1 participant