Reviewing for approvers and reviewers
SIG Docs Reviewers and Approvers do a few extra things when reviewing a change.
Every week a specific docs approver volunteers to triage
and review pull requests. This
person is the "PR Wrangler" for the week. See the
In addition to the rotation, a bot assigns reviewers and approvers
for the PR based on the owners for the affected files. Kubernetes documentation follows the . Everything described in Reviewing a pull request applies, but Reviewers and Approvers should also do the following: Using the Making sure the PR follows the Content and Style guides; link the author to the relevant part of the guide(s) if it doesn't. Using the GitHub Request Changes option when applicable to suggest changes to the PR author. Changing your review status in GitHub using the Leaving PR comments is helpful, but there might be times when you need to commit
into another person's PR instead. Do not "take over" for another person unless they explicitly ask
you to, or you want to resurrect a long-abandoned PR. While it may be faster
in the short term, it deprives the person of the chance to contribute. The process you use depends on whether you need to edit a file that is already
in the scope of the PR, or a file that the PR has not yet touched. You can't commit into someone else's PR if either of the following things is
true: If the PR author pushed their branch directly to the
https://github.com/kubernetes/website/
repository. Only a reviewer with push access can commit to another user's PR. The PR author explicitly disallows edits from approvers. adding and removing labels, closing issues, and assigning an approver. Enter Prow commands as GitHub comments using the The most common prow commands reviewers and approvers use are:Reviewing a PR
/assign
Prow command to assign a specific reviewer to a PR as needed. This is extra important
when it comes to requesting technical review from code contributors.reviewers
field in the front-matter at the top of a Markdown file to see who can
provide technical review.
/approve
or /lgtm
Prow commands, if your suggestions are implemented.Commit into another person's PR
Prow commands for reviewing
/<command-name>
format.
Prow Command | Role Restrictions | Description |
---|---|---|
/lgtm |
Organization members | Signals that you've finished reviewing a PR and are satisfied with the changes. |
/approve |
Approvers | Approves a PR for merging. |
/assign |
Reviewers or Approvers | Assigns a person to review or approve a PR |
/close |
Reviewers or Approvers | Closes an issue or PR. |
/hold |
Anyone | Adds the do-not-merge/hold label, indicating the PR cannot be automatically merged. |
/hold cancel |
Anyone | Removes the do-not-merge/hold label. |
See
In general, SIG Docs follows the
This GitHub Issue filter
finds issues that might need triage.Triage and categorize issues
Triaging an issue
triage/needs-information
label if the issue doesn't have enough
detail to be actionable or the template is not filled out adequately.lifecycle/stale
and triage/needs-information
labels.
At your discretion, take ownership of an issue and submit a PR for it (especially if it's quick or relates to work you're already doing).
If you have questions about triaging an issue, ask in #sig-docs
on Slack or
the .
Adding and removing issue labels
To add a label, leave a comment in one of the following formats:
/<label-to-add>
(for example,/good-first-issue
)/<label-category> <label-to-add>
(for example,/triage needs-information
or/language ja
)
To remove a label, leave a comment in one of the following formats:
/remove-<label-to-remove>
(for example,/remove-help
)/remove-<label-category> <label-to-remove>
(for example,/remove-triage needs-information
)`
In both cases, the label must already exist. If you try to add a label that does not exist, the command is silently ignored.
For a list of all labels, see the . Not all labels are used by SIG Docs.
Issue lifecycle labels
Issues are generally opened and closed quickly. However, sometimes an issue is inactive after its opened. Other times, an issue may need to remain open for longer than 90 days.
Label | Description |
---|---|
lifecycle/stale |
After 90 days with no activity, an issue is automatically labeled as stale. The issue will be automatically closed if the lifecycle is not manually reverted using the /remove-lifecycle stale command. |
lifecycle/frozen |
An issue with this label will not become stale after 90 days of inactivity. A user manually adds this label to issues that need to remain open for much longer than 90 days, such as those with a priority/important-longterm label. |
Handling special issue types
SIG Docs encounters the following types of issues often enough to document how to handle them.
Duplicate issues
If a single problem has one or more issues open for it, combine them into a single issue.
You should decide which issue to keep open (or
open a new issue), then move over all relevant information and link related issues.
Finally, label all other issues that describe the same problem with
triage/duplicate
and close them. Only having a single issue to work on reduces confusion
and avoids duplicate work on the same problem.
Dead link issues
If the dead link issue is in the API or kubectl
documentation, assign them /priority critical-urgent
until the problem is fully understood. Assign all other dead link issues /priority important-longterm
, as they must be manually fixed.