request the review classifier when a pr is opened or reopened
This commit is contained in:
parent
668bd5d46c
commit
b1a00a3222
1 changed files with 110 additions and 38 deletions
|
|
@ -79,7 +79,8 @@ levels deep, and 100 custom flows. A `todo` node sends to the agents an event
|
|||
field holds (`assignees_added`, `todo_holders`, …) or to one named agent.
|
||||
|
||||
The router ships the three flows above, each a source → match on `action` →
|
||||
todo, and `head-classifier`: source `pull_request_sync` → `request_reviewer`
|
||||
todo, and `head-classifier`: source `pull_request` and `pull_request_sync` →
|
||||
match on `action` (`opened`, `reopened`, `synchronized`) → `request_reviewer`
|
||||
for `review-classifier` ([below](#requesting-a-review)). The code defines them
|
||||
(`swarm_wire::notify_flows::builtins`), so a build that changes one reaches
|
||||
every swarm. Each switches off on `/notifications`. A custom flow has the same type and
|
||||
|
|
@ -150,8 +151,9 @@ not retried: the next push asks again. A request repeated for the same head is
|
|||
harmless: a reviewer with a pending request is a no-op for the forge, and one
|
||||
who has reviewed gets `skipped`.
|
||||
|
||||
`head-classifier` requests the review classifier's review on a push to any open
|
||||
PR. The classifier then runs as it does for any requested review
|
||||
`head-classifier` requests the review classifier's review when someone opens or
|
||||
reopens a PR and on every push to an open PR. The classifier then runs as it does
|
||||
for any requested review
|
||||
([`review-classifier.md`](review-classifier.md#trigger-and-lifecycle)), through
|
||||
its own request queue, which replaces a waiting request for the same PR. A
|
||||
repo the classifier's account can't read, or a PR that account opened, answers
|
||||
|
|
|
|||
Loading…
Reference in a new issue