mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-21 09:06:46 +09:00
Backport #39546 by @silverwind `pull_request_review` runs on fork PRs, which includes all backport PRs, get a read-only token and no secrets, so giteabot cannot write lgtm labels and statuses there. A no-op `giteabot-review` workflow now triggers giteabot through `workflow_run`, which gets both. This allows retiring the legacy fly.io webhook bot. Part of https://github.com/go-gitea/giteabot/issues/15 --- This PR was written by Claude. Co-authored-by: silverwind <me@silverwind.io>
20 lines
375 B
YAML
20 lines
375 B
YAML
name: giteabot-review
|
|
|
|
# Relays PR reviews to giteabot.yml through its workflow_run trigger, because review
|
|
# runs on fork PRs get no secrets and a read-only token. The job itself does nothing.
|
|
|
|
on:
|
|
pull_request_review:
|
|
types:
|
|
- submitted
|
|
- edited
|
|
- dismissed
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
relay:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- run: "true"
|