Skip to content

Commit 3c1f5ab

Browse files
authored
Merge pull request #1003 from Kobzol/triagebot-team-rotation-mode
Document team rotation mode
2 parents 0080b28 + 55f1dfb commit 3c1f5ab

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/triagebot/review-queue-tracking.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ Reviewers can configure *review preferences* that are taken into account when de
3232
- Review queue capacity (`C`) --- if the number of PRs in your review queue is at (or above) `C`, `triagebot` will not assign new pull requests to you.
3333
- Rotation mode (`on` or `off` rotation) --- if you set your rotation mode to be `off`, `triagebot` will not assign new pull requests to you.
3434
- This is an alternative to setting yourself as being ["on vacation"](pr-assignment.md#vacation) which does not require sending a pull request to modify the `triagebot.toml` file. `triagebot` takes both `users_on_vacation` in `triagebot.toml` and the rotation mode into account; if you are marked as being on vacation in either of them, it will not assign PRs to you.
35+
- Team rotation mode (`on` or `off` rotation) --- if you set your team rotation mode for team `foo` to be `off`, `triagebot` will not consider you when someone uses `r? foo`.
36+
- This can be used to selectively decide for which teams you will be available for reviews. It also interacts with `assign.owners`, which can be configured to cause triagebot to automatically assign PRs to members of teams based on the files that a given PR modifies.
3537

3638
Note that the review preferences only affect assignment based on adhoc groups or teams. If someone directly requests your review (`r? <user>`), triagebot will currently always assign you. If you are off rotation or at your maximum review capacity, triagebot will send a comment to the PR where you were directly assigned to let the PR author know that you might not be available for a timely review.
3739

@@ -42,6 +44,7 @@ You can examine your review queue and configure your review preferences by sendi
4244
- `work show`: Show the contents of your review queue (in the `rust-lang/rust` repository) and your review preferences.
4345
- `work set-pr-limit <number>|unlimited`: Set your review capacity to `<number>` or remove the capacity limit (`unlimited`).
4446
- `work set-rotation-mode off|on`: Set your rotation mode to be `on` or `off`.
47+
- `work set-team-rotation-mode <team> off|on`: Set your rotation mode through the given `<team>` to be `on` or `off`.
4548

4649
## Implementation
4750

0 commit comments

Comments
 (0)