fix(ci): post status checks on release PR#131
Merged
Conversation
GitHub Actions GITHUB_TOKEN-created PRs don't trigger other workflows, and reusable workflow_call check names don't match branch protection requirements. Replace the validate-release-pr reusable workflow with direct CI triggering via gh workflow run + commit status posting.
Deploying archgate-cli with
|
| Latest commit: |
e844bdb
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://47215eab.archgate-cli.pages.dev |
| Branch Preview URL: | https://fix-release-pr-status-checks.archgate-cli.pages.dev |
Merged
4 tasks
rhuanbarreto
added a commit
that referenced
this pull request
Apr 29, 2026
The `pull-request` job passed `GITHUB_TOKEN` to simple-release-action. GitHub mutes downstream events on `GITHUB_TOKEN`-authored pushes, so `pull_request` synchronize never fired on the release PR — leaving `Lint, Test & Check` orphaned and the PR blocked on a missing required status check (recurrence after the workaround in #131). Generate a GitHub App installation token in the job and pass it to both `actions/checkout` and `simple-release-action`. App-authored pushes trigger `pull_request` events naturally, so code-pull-request and dco workflows run on `refs/pull/N/head` and produce the required checks. The manual `gh workflow run` / `gh api .../statuses` workaround is removed; job permissions narrowed to `contents: read`. Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
rhuanbarreto
added a commit
that referenced
this pull request
Apr 29, 2026
…252) The `pull-request` job passed `GITHUB_TOKEN` to simple-release-action. GitHub mutes downstream events on `GITHUB_TOKEN`-authored pushes, so `pull_request` synchronize never fired on the release PR — leaving `Lint, Test & Check` orphaned and the PR blocked on a missing required status check (recurrence after the workaround in #131). Generate a GitHub App installation token in the job and pass it to both `actions/checkout` and `simple-release-action`. App-authored pushes trigger `pull_request` events naturally, so code-pull-request and dco workflows run on `refs/pull/N/head` and produce the required checks. The manual `gh workflow run` / `gh api .../statuses` workaround is removed; job permissions narrowed to `contents: read`. Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
validate-release-prreusable workflow call with direct CI triggering + commit status postingactions: writeandstatuses: writepermissions to the release workflowcode-pull-request.ymlon thereleasebranch viagh workflow run, waits for completion, and posts a "Validate Code" commit status on the release branch HEADThis fixes the issue where release PRs required manually triggering the validate workflow because:
GITHUB_TOKENdon't trigger other workflows (GitHub security)workflow_callcheck names don't match branch protection's expected "Validate Code" checkPorted from the same fix in bun-serve-compress#10.
Test plan