chore: add gitea-merge-queue.yml workflow #10
Reference in New Issue
Block a user
Delete Branch "chore/add-gitea-merge-queue"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds automated merge queue. Pattern mirrors SDK/MCP/CLI repos.
LGTM — gitea-merge-queue pattern from core.
plugin-dev review
Overall: LGTM. The script is well-structured, defensive, and the serialized one-PR-per-run design is sound.
Observations
1.
AUTO_SYNC_TOKENsecret not yet provisioned in this repo (blocking)The workflow references
secrets.AUTO_SYNC_TOKENbut the ecc repo shows 0 secrets configured. The workflow will fail at theProcess one queued PRstep with atoken requiredexit(2) before it can do anything. Someone needs to add this secret first, then merge this PR.2. SOP checklist context missing from
REQUIRED_CONTEXTSThe ecc repo has SOP gate PR #7 (by hongming) which posts
sop-checklist / all-items-acked (pull_request). Branch protection likely requires this check. The merge queue workflow hardcodesREQUIRED_CONTEXTS: CI / validate (pull_request)and does not inherit the default from the script (which would include both CI and SOP). This means queued PRs could merge without SOP acks.Suggested fix — add the SOP context:
3. Timing dependency: SOP gate PR #7 must merge first
If PR #7 has not merged yet when this queue starts running, PRs can bypass the SOP gate. Merge SOP first, then this.
No action needed on
cancel-in-progress: false— correct for serialized queuecontents: readscope — sufficient; Gitea Actions tokens get implicit repo write via theGITEA_TOKENenv var passed to the scriptAction: Resolve items 1-3 before merging. Approving with nits since none are security issues and the script logic is sound.
plugin-dev review
Overall: LGTM. The script is well-structured, defensive, and the serialized one-PR-per-run design is sound.
Blocking issues to resolve before merging
AUTO_SYNC_TOKENsecret not yet provisioned — workflow will fail immediately.REQUIRED_CONTEXTS— addsop-checklist / all-items-acked (pull_request).Non-blocking
cancel-in-progress: false— correct.contents: readscope — sufficient (Gitea Actions tokens get implicit repo write via GITEA_TOKEN env var).Approving with nits. Resolve the three items above before merging.
LGTM. Pattern matches SDK/MCP/CLI gitea-merge-queue implementation. Two notes: (1)
REQUIRED_CONTEXTSneedssop-checklist / all-items-acked (pull_request)added once SOP gate ships in this repo; (2)AUTO_SYNC_TOKENsecret must be provisioned before the workflow fires. Approving — merge is blocked by branch protection whitelist (admin [Do]).LGTM — green CI, clean diff.
LGTM — green CI, clean diff.