From 39a3ac74f4203c48e60e8afb4a0fe1467cb08171 Mon Sep 17 00:00:00 2001 From: golem Date: Sun, 18 Oct 2026 02:09:04 -0600 Subject: [PATCH] ci: use the github context for the WIP gate Gitea treats github.* as an alias for gitea.*. The pattern was canaried in this form, and pr-flow only detects a gate written this way. Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/firefox-extension.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/firefox-extension.yml b/.gitea/workflows/firefox-extension.yml index 8ca8953..4a5c567 100644 --- a/.gitea/workflows/firefox-extension.yml +++ b/.gitea/workflows/firefox-extension.yml @@ -10,10 +10,12 @@ on: - main workflow_dispatch: +# The gate and concurrency use the github.* context, Gitea's alias for gitea.*: +# it is the form the pattern was canaried with and the one pr-flow detects. concurrency: - group: ${{ gitea.workflow }}-${{ gitea.ref }} + group: ${{ github.workflow }}-${{ github.ref }} # Cancel superseded PR runs, never a push run: main's push uploads the package. - cancel-in-progress: ${{ gitea.event_name == 'pull_request' }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: validate: @@ -21,9 +23,9 @@ jobs: # the title and nothing else, since a skipped job reports success on the # required check (see ~/.claude/docs/gitea-ci-pattern.md). if: >- - gitea.event_name != 'pull_request' || ( - !startsWith(gitea.event.pull_request.title, 'WIP:') && - !startsWith(gitea.event.pull_request.title, '[WIP]') + github.event_name != 'pull_request' || ( + !startsWith(github.event.pull_request.title, 'WIP:') && + !startsWith(github.event.pull_request.title, '[WIP]') ) runs-on: ubuntu-latest steps: