11# Generated by the Flamingo hub — do not edit by hand.
2- # Per-repo settings live in the hub admin (/admin/code-review); this file is
2+ # Per-repo settings live in the hub admin (/admin/code-review and
3+ # /admin/security-review); this file is
34# byte-identical across every reviewed repository AND every deployment, which
45# is what makes drift detectable by comparison. The hub's address arrives in
56# the dispatch payload (Code Documentation style) or, for pull_request runs, the
@@ -453,7 +454,7 @@ jobs:
453454 } >> "$GITHUB_OUTPUT"
454455
455456 # A pull request that ENTERS review is INVITED, not reviewed. This job posts
456- # the summary comment with one checkbox; ticking it (or typing the command)
457+ # each reviewer's summary comment with one checkbox; ticking it (or typing the command)
457458 # is what starts the first review, through resolve_command above. It asks the
458459 # hub first, so a repository whose review is switched off gets no invitation
459460 # to a review that would not run; a hub that cannot be reached still gets
@@ -471,6 +472,14 @@ jobs:
471472 github.event.action != 'labeled' &&
472473 github.event.action != 'synchronize' &&
473474 github.event.pull_request.draft == false
475+ # One invitation per reviewer, each its own comment: the hub answers per kind, so a repository with only one of
476+ # them on gets only that one.
477+ strategy :
478+ fail-fast : false
479+ matrix :
480+ kind : ["general","security"]
481+ env :
482+ REVIEW_KIND : ${{ matrix.kind }}
474483 runs-on : ubuntu-latest
475484 permissions :
476485 # The invitation is the summary comment the review later edits: posted as the Flamingo app (APP_TOKEN_LINES).
@@ -608,7 +617,7 @@ jobs:
608617
609618 download_script_group "review"
610619
611- - name : Ask the hub whether this repository is reviewed
620+ - name : Ask the hub whether this reviewer is on
612621 id : rules
613622 env :
614623 WEBHOOK_SECRET : ${{ secrets.FLAMINGO_HUB_SECRET }}
0 commit comments