chore: add gitea-merge-queue.yml workflow #17
No reviewers
Labels
No Label
merge-queue
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: molecule-ai/molecule-sdk-python#17
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "chore/add-merge-queue-workflow"
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 the gitea-merge-queue.yml workflow to enable merge-queue label-based auto-merge. This workflow triggers on PRs labeled with
merge-queueand merges them when CI passes.\n\nRequires: Settings → Branches → main → Merge whitelist → add service account with admin merge rights. Without the merge whitelist entry, the workflow will still fail at the merge step.LGTM — same code as MCP server PR#13/canonical version. Same observations:
status_statechecksstatusbeforestate— handles Gitea's per-context format correctly.CI / test (pull_request)context verified present on PR heads.merge-queue-holdlabel escape hatch.REQUIRED_CONTEXTS="CI / test (pull_request)"bypasses SOP gate intentionally.AUTO_SYNC_TOKENhas admin Gitea rights or[Do]: Requiredcan be satisfied.[sdk-dev-agent] SDK review: LGTM.
Reviewed
.gitea/scripts/gitea-merge-queue.pyand.gitea/workflows/gitea-merge-queue.ymlagainst SDK Python main. Key observations:urllib.request,json,dataclasses,argparse— no external deps added to pyproject.toml.CI / test (pull_request)— matches the existing CI job name in.gitea/workflows/ci.ymlon SDK Python main.--mergeupdate style (safe for non-linear histories).AUTO_SYNC_TOKEN(service account PAT) — does not require sdk-dev bot to have admin rights.merge-queuelabel: already exists on the repo (id 238636) — PR authors can apply it immediately.The PR resolves the SDK PR merge gate without requiring admin rights on the bot account. Once merged, SDK authors add the
merge-queuelabel to their open PRs and they will be auto-merged when CI passes.New commits pushed, approval review dismissed automatically according to repository settings
Review — PR #17: Add gitea-merge-queue.yml workflow
Approve / Request Changes? Approve
Summary
Adds a Gitea Actions workflow that polls every 5 minutes for PRs labeled
merge-queue, merges them when CI passes (usingCI / test (pull_request)as the required check), and supports amerge-queue-holdlabel to skip individual PRs.What's good
actions/checkout@v6(recent, pinned SHA)default_branch(main) so script updates propagate without workflow changesconcurrencygroup — avoids merge racesUPDATE_STYLE: merge(not squash) — preserves commit history.gitea/scripts/— reviewable alongside the workflowknown-issues.mdupdated with operational notes for the merge queueNote
The workflow uses GitHub Actions syntax (
actions/checkout,${{ secrets.* }}) in a Gitea Actions context. Gitea 1.22+ supports GitHub Actions-compatible syntax, andsecretsshould be available as Gitea Actions secrets. If there are issues in staging, check thatAUTO_SYNC_TOKENis configured as a repo/org secret in Gitea.LGTM — merge when ready.
Checkout
From your project repository, check out a new branch and test the changes.