fix(notify): read the workflow_run fields Gitea sends #1

Merged
poli0981 merged 1 commits from fix/gitea-workflow-run into main 2026-11-23 09:30:48 +00:00
Owner

Gitea's workflow_run payload is not GitHub's: workflow_run has no
name and no head_commit, and head_branch is empty for tag runs.
So the name filters in the notify workflows never matched:
notify-deploy and notify-release-pipeline never ran, and
notify-ci-failure posted for every failed run on main, the ones with
a dedicated notifier included.

  • notify-*: workflow name from github.event.workflow.name, commit
    title from workflow_run.display_title; the release pipeline finds
    tag runs, and the tag, in workflow_run.path ("@")
  • notify-*, announce-release: new input ops_ref (default main), so a
    caller loads discord_notify.py at the SHA it pins in uses:
  • weekly digest: OPS_GITEA_TOKEN also needs read:user, since
    GET /users/{owner}/repos checks both user and repository scopes;
    a 401/403 there now ends with that hint instead of a traceback
  • publish-r2: the release guard of the reusables, a v* tag ref from
    a push or workflow_dispatch (was: dispatch from any ref)
  • announce-release: github.token instead of secrets.GITEA_TOKEN
    (the same token, and one actionlint knows)
  • reusable-chrome-extension: ./ resolves in this repo at the same
    commit, so the nested publish-r2 call needs no change
  • .gitignore: ignore the whole .idea/

Read from the Gitea source (main, 2026-11-23); confirm on 28.4.0
with the pilot repo.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01MnPQKxkPgL2sb8BqwHKv5k

Gitea's workflow_run payload is not GitHub's: workflow_run has no `name` and no `head_commit`, and head_branch is empty for tag runs. So the name filters in the notify workflows never matched: notify-deploy and notify-release-pipeline never ran, and notify-ci-failure posted for every failed run on main, the ones with a dedicated notifier included. - notify-*: workflow name from github.event.workflow.name, commit title from workflow_run.display_title; the release pipeline finds tag runs, and the tag, in workflow_run.path ("<file>@<ref>") - notify-*, announce-release: new input ops_ref (default main), so a caller loads discord_notify.py at the SHA it pins in `uses:` - weekly digest: OPS_GITEA_TOKEN also needs read:user, since GET /users/{owner}/repos checks both user and repository scopes; a 401/403 there now ends with that hint instead of a traceback - publish-r2: the release guard of the reusables, a v* tag ref from a push or workflow_dispatch (was: dispatch from any ref) - announce-release: github.token instead of secrets.GITEA_TOKEN (the same token, and one actionlint knows) - reusable-chrome-extension: `./` resolves in this repo at the same commit, so the nested publish-r2 call needs no change - .gitignore: ignore the whole .idea/ Read from the Gitea source (main, 2026-11-23); confirm on 28.4.0 with the pilot repo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MnPQKxkPgL2sb8BqwHKv5k
poli0981 added 1 commit 2026-11-23 09:28:38 +00:00
Gitea's workflow_run payload is not GitHub's: workflow_run has no
`name` and no `head_commit`, and head_branch is empty for tag runs.
So the name filters in the notify workflows never matched:
notify-deploy and notify-release-pipeline never ran, and
notify-ci-failure posted for every failed run on main, the ones with
a dedicated notifier included.

- notify-*: workflow name from github.event.workflow.name, commit
  title from workflow_run.display_title; the release pipeline finds
  tag runs, and the tag, in workflow_run.path ("<file>@<ref>")
- notify-*, announce-release: new input ops_ref (default main), so a
  caller loads discord_notify.py at the SHA it pins in `uses:`
- weekly digest: OPS_GITEA_TOKEN also needs read:user, since
  GET /users/{owner}/repos checks both user and repository scopes;
  a 401/403 there now ends with that hint instead of a traceback
- publish-r2: the release guard of the reusables, a v* tag ref from
  a push or workflow_dispatch (was: dispatch from any ref)
- announce-release: github.token instead of secrets.GITEA_TOKEN
  (the same token, and one actionlint knows)
- reusable-chrome-extension: `./` resolves in this repo at the same
  commit, so the nested publish-r2 call needs no change
- .gitignore: ignore the whole .idea/

Read from the Gitea source (main, 2026-11-23); confirm on 28.4.0
with the pilot repo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MnPQKxkPgL2sb8BqwHKv5k
poli0981 merged commit a008740625 into main 2026-11-23 09:30:48 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: poli0981/.github#1