Skip to content

[Sync] Update project files from source repository (4f779bf) - #379

Merged
mrz1836 merged 1 commit into
masterfrom
chore/sync-files-go-bitcoin-20261019-012522-4f779bf
Oct 19, 2026
Merged

mrz1836 merged 1 commit into
masterfrom
chore/sync-files-go-bitcoin-20261019-012522-4f779bf

Conversation

@mrz1836

@mrz1836 mrz1836 commented Oct 19, 2026

Copy link
Copy Markdown
Member

What Changed

  • GO_PRE_COMMIT_VERSION: v1.13.0 → v1.13.1 (.github/env/10-pre-commit.env)
  • MAGE_X_VERSION: v1.29.3 → v1.29.4 (.github/env/10-mage-x.env)
  • The auto-merge trigger workflow now also fires on edited, labeled, unlabeled, converted_to_draft, review_requested, reopened and auto_merge_enabled PR events, in addition to the existing review and PR events. An event gate lets edited through only for title or base-branch changes. auto_merge_disabled is deliberately left out so a manually disarmed PR isn't re-armed.
  • The auto-merge evaluator workflow was restructured so reviews and all arming conditions are gathered up front into a single list of blockers (draft, WIP, missing opt-in label, changes requested, approval count, pending reviews). Pending reviews now count requested teams as well as users. AUTO_MERGE_MIN_APPROVALS is now validated as a whole number, and the workflow fails if it is not.
  • The header comments in both workflows and a line in the workflows documentation were updated to describe the new triggers and the revocation rules.

Why It Was Necessary

  • Arming and revocation previously waited on a limited set of events. Label, title, draft-state, review-request and reopen changes could flip the auto-merge decision without waking the evaluator.
  • Running the guards before reading review state could cause an early return that skipped revocation. Gathering everything first keeps the arm and revoke decisions consistent.
  • A non-numeric approval setting would make every approval comparison false, so the workflow now fails closed instead.

Testing Performed

  • No test run is shown in the diff. Validation depends on the repository's CI and workflow linting.
  • The new event gate and blocker logic should be exercised with PR events such as label changes, title edits, draft toggles and review dismissals.
  • The diffs for the evaluator workflow and the docs file were truncated, so those changes are described only at a high level.

Impact / Risk

  • Behavior change: auto-merge is now re-evaluated on more PR events. Armed auto-merges are disabled sooner when a condition stops holding, such as a removed label, a WIP title or a new review request.
  • Workflow load: more trigger runs will be queued, though the event gate filters out irrelevant edited and review events.
  • Risk: moderate, since the evaluator logic was substantially rewritten (+245/-163). The apply job re-checks the same conditions in bash, so the two copies must stay in sync. Tool version bumps are minor.

Copilot AI balanced review requested due to automatic review settings October 19, 2026 01:25
@mrz1836 mrz1836 self-assigned this Oct 19, 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 19, 2026
@github-actions github-actions Bot added update General updates size/L Large change (201-500 lines) labels Oct 19, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Unresolved event-gating and cancellation issues require fixes and human validation of auto-merge event ordering.

2 open issues
What changed in this PR

Updates shared CI tooling and expands auto-merge evaluation to respond to more PR state changes.

Changes:

  • Adds PR event triggers and an edit-event gate.
  • Unifies eligibility and revocation checks, including pending team reviews.
  • Updates tool versions and workflow documentation.
File Description
.github/​workflows/​auto-merge-trigger.yml Expands triggers and filters edit events.
.github/​workflows/​auto-merge-on-approval.yml Restructures eligibility, revocation, and pre-apply checks.
.github/​env/​10-pre-commit.env Updates go-pre-commit to v1.13.1.
.github/​env/​10-mage-x.env Updates MAGE-X to v1.29.4.
.github/​docs/​workflows.md Documents expanded trigger coverage.

Review effort: Balanced

@mrz1836
mrz1836 merged commit cd299f7 into master Oct 19, 2026
30 checks passed
@github-actions
github-actions Bot deleted the chore/sync-files-go-bitcoin-20261019-012522-4f779bf branch October 19, 2026 01: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/L Large change (201-500 lines) update General updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants