-
Notifications
You must be signed in to change notification settings - Fork 1
fix(ci): stacked-PR base support + governance-gate CodeRabbit/OpenCode fallback fixes #1531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
seonghobae
wants to merge
12
commits into
chore/aiohttp-3.14.3-maintainer
Choose a base branch
from
chore/stacked-pr-governance-gate-support
base: chore/aiohttp-3.14.3-maintainer
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+354
−62
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
38a53ee
fix(ci): allow stacked-PR bases across governed workflows + governanc…
claude 6acf91e
fix(governance): don't let OpenCode fallback clear a genuinely-pendin…
claude ae0f09d
test(ci): also reject branches-ignore in stacked-PR trigger contracts
claude e03c805
docs(governance): fix stale PR-base/push-branch scoping in merge-gate…
claude 27ab83b
chore(governance): remove unused OPENCODE_FALLBACK_APPROVED flag
claude 550798c
fix(governance): honor OpenCode fallback evidence
seonghobae e058f3e
fix(ci): preserve multiline review wait semantics
seonghobae fac3437
fix: preserve successful review evidence over stale notices
seonghobae 179229d
fix(ci): authenticate review evidence and reject warning outputs
seonghobae b6d6c28
test(ci): cover missing publishers and trusted quality aliases
seonghobae f2e2ac0
fix(ci): distinguish clean robot summaries from blockers
seonghobae bd0135d
merge(ci): inherit combined security prerequisite
seonghobae File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| """Regression coverage for governed checks on stacked pull requests.""" | ||
|
|
||
| from pathlib import Path | ||
| import re | ||
|
|
||
|
|
||
| REPO_ROOT = Path(__file__).resolve().parents[2] | ||
| GOVERNED_PULL_REQUEST_WORKFLOWS = ( | ||
| "app-ci.yml", | ||
| "bandit.yml", | ||
| "dependency-review.yml", | ||
| "docker-publish.yml", | ||
| ) | ||
|
|
||
|
|
||
| def test_governed_pull_request_workflows_accept_stacked_base_branches() -> None: | ||
|
seonghobae marked this conversation as resolved.
|
||
| """Required repository checks must run for every PR base, including stacks.""" | ||
| for name in GOVERNED_PULL_REQUEST_WORKFLOWS: | ||
| workflow = (REPO_ROOT / ".github" / "workflows" / name).read_text() | ||
| pull_request_trigger = re.search( | ||
| r"(?ms)^ pull_request:\s*$\n(?P<body>(?:^ .*$\n)*)", | ||
| workflow, | ||
| ) | ||
| assert pull_request_trigger is not None, f"{name} must run on pull_request" | ||
| body = pull_request_trigger.group("body") | ||
| assert "branches:" not in body, f"{name} must not exclude stacked PR base branches" | ||
| assert "branches-ignore:" not in body, ( | ||
| f"{name} must not exclude stacked PR base branches via branches-ignore" | ||
| ) | ||
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
|
seonghobae marked this conversation as resolved.
|
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.