Repository navigation
Commit c82df08
authored
fix(ci): derive requested teams from CODEOWNERS and detect existing PR assignees in assign-reviewers (#9703)
Fixes reviewer auto-assignment in
`.github/workflows/assign-reviewers.yml` without requiring organization
team token permissions:
### Fixes ###
- Add `@quirogas` to `# team_members:`.
- Parse file-to-team rules directly from `.github/CODEOWNERS` instead of
`pulls.listRequestedReviewers` (which returns `teams: []` under
`GITHUB_TOKEN` and previously caused `hasDefaultTeam` to evaluate to
`false`, skipping removal of `cloud-sdk-nodejs-team`).
- Check human `requested_reviewers`, `assignees`, and `reviews`
(`hasHumanReviewerOrAssignee`), and trigger on `review_requested` and
`assigned` events so `cloud-sdk-nodejs-team` is reliably removed
whenever another reviewer is assigned.1 parent 60893a7 commit c82df08
2 files changed
Lines changed: 227 additions & 185 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments