Skip to content

Commit d3cf082

Browse files
authored
docs: point PR label guidance at REVIEWERS.md (#5403)
Reviewer routing uses the area and topic headings in REVIEWERS.md, not the repository label list. State that in CONTRIBUTING.md and the create-github-pr skill. Signed-off-by: Evan Lezar <elezar@nvidia.com>
1 parent 9f7cc51 commit d3cf082

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎.agents/skills/create-github-pr/SKILL.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,14 @@ EOF
246246
| `--head, -H` | Source branch (default: current) |
247247
| `--web` | Open in browser after creation |
248248

249+
## Labels
250+
251+
Apply exactly one `area:` label and any relevant `topic:` labels. Choose them from
252+
the `### area:*` and `### topic:*` headings in `REVIEWERS.md`, reading each
253+
section's description against the files you changed. Do not choose from
254+
`gh label list`: it contains legacy labels such as `area:gateway` that have no
255+
reviewer roster, so they request no reviewers.
256+
249257
## After Creating
250258

251259
The command outputs the PR URL and number.

‎CONTRIBUTING.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Every pull request must be approved by someone listed in [MAINTAINERS.md](MAINTA
6363

6464
Pull requests that touch the enforcement machinery or reviewer routing — anything under `.github/workflows/`, `.github/actions/`, `MAINTAINERS.md`, `REVIEWERS.md`, `.github/CODEOWNERS`, or the enforcement and reviewer-routing scripts in `tasks/scripts/` — additionally require a code owner's approval, listed in [.github/CODEOWNERS](.github/CODEOWNERS). The status check reads its inputs from `main`, but a workflow triggered by a review runs the pull request's own copy of the workflow file, so GitHub's native code owner requirement is what keeps a change from disabling the gate that would have blocked it.
6565

66-
Once your pull request represents [accepted work](#accepted-work), it needs exactly one `area:` label and any relevant `topic:` labels; see [Labeling and Notifications](#labeling-and-notifications) for guidance. The [reviewer routing workflow](.github/workflows/review-readiness.yml) adds reviewers from [REVIEWERS.md](REVIEWERS.md) based on these labels. The same workflow fails a ready PR from a personal fork that does not allow edits by maintainers; `gh pr create` enables that setting by default.
66+
Once your pull request represents [accepted work](#accepted-work), it needs exactly one `area:` label and any relevant `topic:` labels; see [Labeling and Notifications](#labeling-and-notifications) for guidance. Choose labels from the `area:*` and `topic:*` headings in [REVIEWERS.md](REVIEWERS.md); labels without a matching heading do not route reviewers. The [reviewer routing workflow](.github/workflows/review-readiness.yml) adds reviewers from that file based on these labels. The same workflow fails a ready PR from a personal fork that does not allow edits by maintainers; `gh pr create` enables that setting by default.
6767

6868
Branch Checks requires accounts in `REVIEWERS.md` to appear in the repository collaborator list or have confirmed write or admin permission. Public read access alone does not qualify; read and triage accounts must appear in the collaborator list.
6969

0 commit comments

Comments
 (0)