mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-utils.git
synced 2026-07-13 06:55:46 +00:00
1b49b149d0
auto-merge.yml only listened for the "Code Quality" workflow_run event. Whenever "Security" (CodeQL etc., usually the slower of the two) finished after Code Quality, the merge attempt fired too early, failed against the still-pending required check, and nothing ever re-triggered it - the PR sat open until someone noticed and merged it by hand. This is the actual cause behind the recurring "master->main sync PR stuck" issue, not a one-off fluke. Now listens for both workflows, and verifies every required check is actually green (via `gh pr checks --required`) before merging rather than trusting that the one workflow which fired us means everything is done - whichever of the two finishes last will now successfully trigger the merge.