Skip to content

[Sync] Update project files from source repository (8cf8737) - #192

Merged
mrz1836 merged 1 commit into
masterfrom
chore/sync-files-go-pre-commit-20261020-022405-8cf8737
Oct 20, 2026
Merged

mrz1836 merged 1 commit into
masterfrom
chore/sync-files-go-pre-commit-20261020-022405-8cf8737

Conversation

@mrz1836

@mrz1836 mrz1836 commented Oct 20, 2026

Copy link
Copy Markdown
Owner

What Changed

  • Docs (auto-merge-github-app.md): Updated the security-model table and the "dismiss stale approvals on push" section so they apply to both the Dependabot workflow and Auto-merge on Approval, not just Dependabot.
    • Auto-merge on Approval only counts approvals of the PR's current head commit, and revokes its own arming when a push leaves the new head unapproved.
    • Both workflows now require a base-branch ruleset that requires an approval and voids it on a new push.
    • The skip-stale-approvals-kept troubleshooting row now covers "analysis or evaluation" and links to the renamed anchor #required-for-auto-merge-dismiss-stale-approvals-on-push.
  • Trigger workflow (auto-merge-trigger.yml): Comment-only changes. They now say both auto-merge workflows only arm when rulesets dismiss stale approvals, and explain that synchronize revokes the App's arming until the new head is approved.
  • Dependabot workflow (dependabot-auto-merge.yml):
    • The verify step now sets a decision output instead of result. The job's result output and the summary step's RESULT env now read steps.verify.outputs.decision. The reason given is that actions/github-script overwrites its own result output with the script's return value.
    • The base-branch rules lookup in Guard 4 now uses gh api --paginate with per_page=100, merges the pages with jq -s 'add // []', and uses pipefail in a subshell. A failed read falls back to [] instead of passing along an error body.
  • Auto-merge on Approval workflow (auto-merge-on-approval.yml): Modified (+70/-23). The diff was trimmed, so no specific details are described here.

Why It Was Necessary

  • Approvals on a non-Dependabot PR could otherwise stay valid after a push that also edits the PR-side trigger. The docs and trigger comments now describe the stale-approval requirement for both workflows.
  • The result output set by the verify script would be overwritten by actions/github-script, so downstream jobs could read an empty value. Renaming it to decision avoids that.
  • A single unpaginated rules request could miss a required-status-checks rule on a later page, which would affect the "base branch must require status checks" guard.

Testing Performed

  • No test runs or manual validation steps appear in the diff.
  • Reviewers should confirm that the Dependabot verify job's result output is populated from decision and that the summary step shows the expected result.
  • Reviewers should also check the pagination change against a base branch with many rules, and a failed rules read, which should yield [].

Impact / Risk

  • Behavior change: Repositories without a base-branch ruleset that requires an approval and dismisses stale approvals on push will now see Auto-merge on Approval skip arming and disarm its own earlier arming (skip-stale-approvals-kept). Dependabot PRs without such a ruleset were already left for manual review.
  • Risk: Medium for the auto-merge workflows, since they gate approvals and merges. The auto-merge-on-approval.yml logic changes could not be reviewed from the trimmed diff.
  • Docs: The anchor for the stale-approvals section was renamed, so external links to the old anchor will no longer resolve.

@mrz1836 mrz1836 self-assigned this Oct 20, 2026
@mrz1836 mrz1836 added automated-sync Automated sync PR, e.g. from a fork or external repo automerge Label to automatically merge pull requests that meet all required conditions chore Simple dependency updates or version bumps labels Oct 20, 2026
@github-actions github-actions Bot added update General updates size/M Medium change (51-200 lines) labels Oct 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage Analysis

🟢 Overall Coverage: 92.0%
No Go files modified in this PR

Project coverage remains at 92.0% (3.3K/3.6K statements)

Changes: 4 config files

Coverage Metrics

Metric Value Grade Trend
Percentage 92.0% 🏆 A 📊
Statements 3.3K/3.6K 🏆 A No change
Quality Score 92/100 🏆 A 📈

Coverage Breakdown

█████████████░░ 92.0%

Resources


Generated via go-coverage • 2026-10-20 02:30:36 UTC

github-actions Bot added a commit that referenced this pull request Oct 20, 2026
🏷️ Generated with GoFortress
@mrz1836
mrz1836 merged commit cce152f into master Oct 20, 2026
37 checks passed
@github-actions
github-actions Bot deleted the chore/sync-files-go-pre-commit-20261020-022405-8cf8737 branch October 20, 2026 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated-sync Automated sync PR, e.g. from a fork or external repo automerge Label to automatically merge pull requests that meet all required conditions chore Simple dependency updates or version bumps size/M Medium change (51-200 lines) update General updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant