ci: add required_status_check.yml aggregator gate#1
Merged
Conversation
Emit a single `complete` status check that mirrors the PR CI workflow's conclusion, so the org branch ruleset can require one stable context instead of individual (matrix) CI job names. Waits only on the "CI" workflow (ci.yml); Race Stress runs on push, not pull_request, so it is deliberately excluded from the filter. Required by stellar/terraform#6140. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Adds a new GitHub Actions workflow intended to act as an aggregator “gate” for PR CI by waiting for the CI workflow to finish and surfacing a single required check.
Changes:
- Added
.github/workflows/required_status_check.ymlworkflow triggered onpull_request. - Introduced a
completejob that usesint128/wait-for-workflows-actionto wait for theCIworkflow.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Address the Copilot/CodeQL review on PR #1: replace the org-default token with a least-privilege read-only set (contents/actions/checks: read — actions:read is what wait-for-workflows-action needs to query runs) and add a concurrency group so force-pushes cancel superseded `complete` jobs instead of leaving them polling. Job id `complete` and the CI-only filter are unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Adds
.github/workflows/required_status_check.yml— an aggregator "gate" workflow that emits a single status check namedcompletewhich mirrors the PR CI workflow's conclusion.This lets the org branch ruleset require one stable context (
complete) instead of the individual CI job names, which otherwise shift (streamhash's CI has a matrixtestjob). Standard org convention (used by stellar-rpc, go-stellar-sdk, et al.).complete→ produces the status-check context literally namedcomplete.filter-workflow-names: CIonly — waits onci.yml(name: CI, runs onpull_request).race-stress.yml(name: Race Stress) runs on push, not PRs, so it is deliberately excluded (otherwisecompletewould wait forever).Required by stellar/terraform#6140 — that PR must not merge until this workflow exists and reports green here.
🤖 Generated with Claude Code