Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .github/workflows/flamingo-code-review.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Generated by the Flamingo hub — do not edit by hand.
# Per-repo settings live in the hub admin (/admin/code-review); this file is
# Per-repo settings live in the hub admin (/admin/code-review and
# /admin/security-review); this file is
# byte-identical across every reviewed repository AND every deployment, which
# is what makes drift detectable by comparison. The hub's address arrives in
# the dispatch payload (Code Documentation style) or, for pull_request runs, the
Expand Down Expand Up @@ -453,7 +454,7 @@ jobs:
} >> "$GITHUB_OUTPUT"

# A pull request that ENTERS review is INVITED, not reviewed. This job posts
# the summary comment with one checkbox; ticking it (or typing the command)
# each reviewer's summary comment with one checkbox; ticking it (or typing the command)
# is what starts the first review, through resolve_command above. It asks the
# hub first, so a repository whose review is switched off gets no invitation
# to a review that would not run; a hub that cannot be reached still gets
Expand All @@ -471,6 +472,14 @@ jobs:
github.event.action != 'labeled' &&
github.event.action != 'synchronize' &&
github.event.pull_request.draft == false
# One invitation per reviewer, each its own comment: the hub answers per kind, so a repository with only one of
# them on gets only that one.
strategy:
fail-fast: false
matrix:
kind: ["general","security"]
env:
REVIEW_KIND: ${{ matrix.kind }}
runs-on: ubuntu-latest
permissions:
# The invitation is the summary comment the review later edits: posted as the Flamingo app (APP_TOKEN_LINES).
Expand Down Expand Up @@ -608,7 +617,7 @@ jobs:

download_script_group "review"

- name: Ask the hub whether this repository is reviewed
- name: Ask the hub whether this reviewer is on
id: rules
env:
WEBHOOK_SECRET: ${{ secrets.FLAMINGO_HUB_SECRET }}
Expand Down
Loading