Skip to content

Commit f052ce5

Browse files
authored
Merge pull request #122 from is-a-dev/pr-reviewer-docs
maintainers/reviewing-prs: add reviewbot section
2 parents 00b8285 + b2fc836 commit f052ce5

2 files changed

Lines changed: 23 additions & 2 deletions

File tree

‎src/maintainers/reviewing-prs.md‎

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ You should instantly close a pull request when:
2222
8. The PR is a duplicate of another PR (i.e., the user made multiple PRs in the hopes of getting their domain faster).
2323
9. Any one the "Requirements" checkboxes have not been fulfilled.
2424

25+
[^1]: Nested subdomains are a subdomain of a subdomain, such as `nested.example.is-a.dev`. `example.is-a.dev` is not a nested subdomain, it is a subdomain!
26+
2527
## Steps to Reviewing a PR
2628
First, approve checks if needed. Do this by clicking the button at the bottom of the PR labelled "Approve workflows to run".
2729

@@ -33,7 +35,7 @@ You cannot merge a PR if the checks do not pass. If the checks fail, examine the
3335

3436
![](../media/reviewing-prs/checks-failed.png)
3537

36-
*Request changes* based on the issues at hand. Do not be rude in your review and act professionally.
38+
*Request changes* based on the issues at hand. Do not be rude in your review and act professionally. We recommend using reviewbot to streamline the process of requesting changes!
3739

3840
If there are no issues with the PR at this point, you are free to merge it.
3941
If you requested changes, please *apply labels to the PR*. For example, if the PR violates our ToS because it is a commercial website:
@@ -47,8 +49,27 @@ If you requested changes, please *apply labels to the PR*. For example, if the P
4749

4850
You can use quickly select and use saved replies in the reply/reviewing text box by pressing Ctrl/Command + Period (.) together.
4951

52+
We recommend using reviewbot instead of saved replies, however! See the next section.
53+
5054
2. Mass approve checks first, review afterwards. This allows you to skip the hassle of waiting for checks to finish running.
5155

5256
3. When unsure of whether or not to approve or request changes on a PR, do not hesitate to ask another, more experienced maintainer on how to deal with it. You can also simply skip the PR and wait for someone else to review it.
5357

54-
[^1]: Nested subdomains are a subdomain of a subdomain, such as `nested.example.is-a.dev`. `example.is-a.dev` is not a nested subdomain, it is a subdomain!
58+
## Reviewbot
59+
A very helpful tool we have at our disposal is [reviewbot](https://github.com/iostpa/reviewbot). Reviewbot is a GitHub bot maintained by [iostpa](https://iostpa.com) which sends a comment in a pull request upon the application of labels with an explanation of each label in some detail. Reviewbot can also optionally close a pull request based on the `status: denied` label.
60+
61+
Example usage would be as follows: on a pull request that adds a website unrelated to software development, you should add the `status: denied` and `reason: not dev related` labels to the pull request, and simply move on. Reviewbot will close the pull request on your behalf and explain the reason why the pull request was denied in detail to the PR author.
62+
63+
!!!
64+
Note: You may use `status: invalid` to simply request changes on a PR instead of closing it.
65+
!!!
66+
67+
Please use `status: denied` or `status: invalid` in conjuction with other `reason: x` labels (or `status: needs preview`). If none of the labels fit the reason why you denied the pull request, use `reason: other` in conjuction with either status label and comment your reason directly in the pull request.
68+
69+
!!!
70+
Reviewbot has a 3 second time window. This means that you can make last-minute changes before reviewbot starts sending the message.
71+
!!!
72+
73+
Here is an example of using reviewbot with the `status: denied` and `reason: not dev related` labels:
74+
75+
![reviewbot example](../media/reviewbot-example.png)

‎src/media/reviewbot-example.png‎

56.1 KB
Loading

0 commit comments

Comments
 (0)