ci: label PRs with reviewed/wait-merge when auto-merge is enabled - #39120
ci: label PRs with reviewed/wait-merge when auto-merge is enabled#39120bircni wants to merge 1 commit into
Conversation
|
Why not merge it into |
|
Maybe it could be smarter: only mark one PR with "wait-merge", or only merge one PR in "auto merge" status with main branch. Otherwise, if there are 5 PRs in "auto merge" status, you will trigger 5+4+3+2+1 times CI runs. |
GitHub has exactly this feature called "merge queue", if we enable it we don't even need |
good idea |
|
Will be good if we test that, should later implement this in Gitea too and fix #36392. |
Reminds me that I have a branch for that somewhere 😂🤔 |
GitHub emits
auto_merge_enabledandauto_merge_disabledactivity types onpull_request, soreviewed/wait-mergecan follow the auto-merge stateinstead of being applied by hand.
pull_request_targetis needed to write labels on fork PRs; the job only callsthe label API and never checks out PR-head code.