You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Read the Base Rules Before the Merge-Bot Re-Arms Auto-Merge #4551
Raised by the local strict review of #4549, and filed as pre-existing, since the re-arm job predates that change.
In .github/workflows/merge-bot-task.yml, the "Re-arm auto-merge step" (around line 409) never reads the base branch's rules. It answers auto_merge_disabled by re-arming with gh pr merge --auto. The merge step, by contrast, branches on whether the base requires status checks, and on a base requiring none it waits for every check on the head before merging.
Failure: a pull request is armed while its base requires status checks. Then a ruleset change drops the required checks before GitHub disables the auto-merge. The re-arm then runs gh pr merge --auto on a base with no required checks. Where the pull request is otherwise mergeable, gh merges at once, so it skips the head-check wait D8.1 promises on such a base.
Candidate fix: have the re-arm step read repos/$REPO/rules/branches/$BASE_REF as the merge step does. Where required_status_checks is absent, fail visibly rather than re-arm. The merge job's own wait is the path for that base. Add a test in tests/test_merge_bot_rearm.py.
The window is narrow, since it needs a maintainer ruleset change mid-flight.
Activity
Promote Develop to Main: setup-github gh Key Add and .NET Packing (#4542