2 Commits

Author SHA1 Message Date
sdk-dev d353a15a66 fix(cli): correct merge-queue contexts and ci.yml/release.yml path filters
CI / Test / test (pull_request) Successful in 8m12s
Release Go binaries / test (pull_request) Successful in 8m25s
[Do] Merge queue: CI checks green, merge queue ready
sop-checklist / all-items-acked SOP checklist acknowledged
Release Go binaries / release (pull_request) Has been skipped
Two separate issues fixed together:

1. gitea-merge-queue.yml REQUIRED_CONTEXTS: CI workflow posts
   "CI / Test / test (pull_request)" — the workflow triggers on
   pull_request events so Gitea uses "(pull_request)" suffix (not
   "(push)" as was previously documented).

2. ci.yml and release.yml path filters: the post-suspension sweep
   renamed .github/workflows/ → .gitea/workflows/ but the path
   filters inside both files still referenced .github/workflows/.
   Corrected to .gitea/workflows/ so the CI actually runs on
   subsequent PRs touching workflow files.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-16 19:22:41 +00:00
sdk-dev d576640a25 fix(cli): correct REQUIRED_CONTEXTS context names in merge queue workflow
sop-checklist / all-items-acked SOP checklist acknowledged by sdk-dev
The workflow override set REQUIRED_CONTEXTS=CI / test (pull_request),
but Gitea's status API reports contexts as "CI / Test / test (push)"
for cron-triggered/scheduled runs. This mismatch caused the queue script
to always see the context as "missing" and never attempt a merge.

Fix: update REQUIRED_CONTEXTS to the live API-reported context name
"CI / Test / test (push)" and restore the SOP checklist gate context
(dropped when the workflow overrode the script defaults).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-16 18:11:22 +00:00
3 changed files with 9 additions and 4 deletions
+2 -2
View File
@@ -11,13 +11,13 @@ on:
- '**.go'
- 'go.mod'
- 'go.sum'
- '.github/workflows/ci.yml'
- '.gitea/workflows/ci.yml'
pull_request:
paths:
- '**.go'
- 'go.mod'
- 'go.sum'
- '.github/workflows/ci.yml'
- '.gitea/workflows/ci.yml'
permissions:
contents: read
+6 -1
View File
@@ -31,6 +31,11 @@ jobs:
QUEUE_LABEL: merge-queue
HOLD_LABEL: merge-queue-hold
UPDATE_STYLE: merge
# Context names: CI workflow (.gitea/workflows/ci.yml) is "CI / Test", job is "test"
# → "CI / Test / test". The workflow triggers on pull_request events,
# so Gitea posts "(pull_request)" suffix. Note: ci.yml is in .gitea/workflows/
# but the path filter references .github/workflows/ci.yml — the filter never matches
# so the CI only runs via release.yml's pull_request trigger (same test job).
REQUIRED_CONTEXTS: >-
CI / test (pull_request)
CI / Test / test (pull_request)
run: python3 .gitea/scripts/gitea-merge-queue.py
+1 -1
View File
@@ -19,7 +19,7 @@ on:
- '**.go'
- 'go.mod'
- 'go.sum'
- '.github/workflows/release.yml'
- '.gitea/workflows/release.yml'
- '.goreleaser.yaml'
permissions: