Repository navigation
[Sync] Update project files from source repository (c3e162d) - #390
Merged
mrz1836 merged 1 commit intoOct 19, 2026
Merged
Conversation
There was a problem hiding this comment.
🔵 Needs a closer look
Security-critical merge enforcement still needs pagination corrections and validation against live GitHub rulesets.
1 open issue
What changed in this PR
Tightens auto-merge safeguards so GitHub rulesets must require approval and prevent older approvals from authorizing new pushes.
Changes:
- Enforces the approval requirement in evaluation and the final re-check.
- Adds a blocker and diagnostic messages.
- Updates setup documentation and trigger comments.
| File | Description |
|---|---|
| .github/workflows/auto-merge-trigger.yml | Updates the comment to cover both workflows. |
| .github/workflows/auto-merge-on-approval.yml | Adds ruleset approval checks and reporting. |
| .github/docs/auto-merge-github-app.md | Documents requirements and troubleshooting. |
Review effort: Balanced
Comment on lines
+447
to
+449
| const reviewRules = rules.filter(r => r.type === 'pull_request').map(r => r.parameters || {}); | ||
| const voided = reviewRules.some(p => (p.required_approving_review_count || 0) > 0) && | ||
| reviewRules.some(p => p.dismiss_stale_reviews_on_push === true || p.require_last_push_approval === true); |
github-actions
Bot
deleted the
chore/sync-files-go-bitcoin-20261019-193742-c3e162d
branch
October 19, 2026 19:57
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.

What Changed
auto-merge-on-approval.ymlso the base branch's rulesets must also require at least one approval and void it on a new push. A rulesetpull_requestrule must setrequired_approving_review_countabove 0, and a rule must setdismiss_stale_reviews_on_pushorrequire_last_push_approvalto true. This is now an always-enforced condition.evaluatejob's script and the shell re-check step. Each computes a new value (approvalsVoidedOnPush/APPROVALS_VOIDED_ON_PUSH) from the rules it already reads for the base branch.skip-stale-approvals-kept, with the description "Skipped (base branch keeps approvals after new pushes, or requires none)". When it fires, the evaluate script emits acore.warningtitled "Approvals survive new pushes on ".auto-merge-trigger.ymlto say "both auto-merge workflows only arm when the base branch's rulesets dismiss stale approvals on push". It previously named only Dependabot Auto-merge and said it "only approves"..github/docs/auto-merge-github-app.md(7 lines added, 7 removed). Its diff was trimmed, so no further details are described here.Why It Was Necessary
Testing Performed
jq/shell re-check step. Reviewers can compare the two for consistency.skip-stale-approvals-keptwhen the ruleset is missing.Impact / Risk