-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revises CONTRIBUTING.md #10054
Revises CONTRIBUTING.md #10054
Conversation
Visit the preview URL for this PR (updated for commit 3f0419c): https://flutter-docs-prod--pr10054-fix-10053-q885qn7s.web.app |
22d6153
to
f063afb
Compare
@RedBrogdon , @sfshaza2 , @MaryaBelanger : PTAL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some feedback.
CONTRIBUTING.md
Outdated
rather than commenting on every instance. | ||
* Try to **approve** with suggestions wherever possible. | ||
Use **request changes** only when the change can harm an end user's work or | ||
violates [Flutter's Code of Conduct][code-of-conduct]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would expect that if a PR violates the code of conduct, that we would just close it and close comments on it.
CONTRIBUTING.md
Outdated
Use **request changes** only when the change can harm an end user's work or | ||
violates [Flutter's Code of Conduct][code-of-conduct]. | ||
|
||
### Review the technical concerns |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review the technical concerns? I think it's Review the technical content
before merging. | ||
Click **Approve** and change the label from | ||
[**review.tech**][review-tech-label] to | ||
[**review.copy**][review-copy-label]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, not all external contributors can apply labels.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anyone with triage access could, which I believe all reviewers can do. I'm double-checking with @godofredoc .
note the reason why, | ||
click **Comment** and change the label from | ||
[**review.tech**][review-tech-label] to | ||
[**review.await-update**][review-await-label]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Understood. Checking this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some initial comments. Also, not sure how it renders, but each numbered item in the lists is just a 1.
CONTRIBUTING.md
Outdated
[search for an issue][search-issue] that covers your concern. | ||
If you don't find one and your change is significant, | ||
consider [creating an issue][create-issue] | ||
that describers the problem and how you would plan to fix it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that describers the problem and how you would plan to fix it. | |
that describes the problem and how you plan to fix it. |
CONTRIBUTING.md
Outdated
|
||
Before submitting a PR, | ||
[search for an issue][search-issue] that covers your concern. | ||
If you don't find one and your change is significant, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If they DO find one, what then? Do they have to announce they're working on it? Wait for approval? Just start working on it? Etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We typically encourage users to upvote by adding a 👍 rather than leave "this is affecting me too" comments.
CONTRIBUTING.md
Outdated
|
||
1. [Create a branch][create-branch] for your change. | ||
Consider naming it `fix-<issue_number>` to help others find the related issue. | ||
The new branch should be based on the `main` or a feature or version branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new branch should be based on the `main` or a feature or version branch. | |
The new branch should be based on `main` or a feature or version branch. |
CONTRIBUTING.md
Outdated
|
||
1. Avoid adjusting indents, line breaks, formatting, and the like | ||
unrelated to your PR as part of the PR. Separate different work | ||
using a new commit, a separate issue, a separate PR, or some |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would "a new commit" still be in the same PR? The previous sentence says "as part of the PR"
CONTRIBUTING.md
Outdated
### Respond to reviewer feedback | ||
|
||
1. Read and address comments from the reviewer. | ||
Acknowledge all comments with at least add a [reaction emoji][reaction-emoji]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acknowledge all comments with at least add a [reaction emoji][reaction-emoji]. | |
Acknowledge all comments with at least a [reaction emoji][reaction-emoji]. |
CONTRIBUTING.md
Outdated
|
||
### General guidelines for reviews | ||
|
||
* Technical review comes before content review, or "copy", review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Technical review comes before content review, or "copy", review. | |
* Technical review comes before content, or "copy", review. |
CONTRIBUTING.md
Outdated
If the writer makes a change that's technically correct but could be done | ||
differently, _approve the PR_. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"technically correct but could be done differently" -- not sure what the idea behind this statement is. Like, you could do something technically correctly in a long, convoluted, messy way. Best practices should be enforced if the reviewer has that context
CONTRIBUTING.md
Outdated
* Critique the _technical aspects_ of the PR. | ||
If the writer makes a change that's technically correct but could be done | ||
differently, _approve the PR_. | ||
* Provide suggested changes with corrected copy to make your change clear. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Provide suggested changes with corrected copy to make your change clear. | |
* Provide suggested changes with corrected copy to make your changes clear. |
CONTRIBUTING.md
Outdated
[**review.tech**][review-tech-label] to | ||
[**review.await-update**][review-await-label]. | ||
|
||
### Review the content quality |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these headings should be more clear. It's not clear from the headings or the contents in each section that these are two separate types of reviews, and if you're requested as a reviewer, you're likely only responsible for one (correct?) Something like
### Review the content quality | |
### Copy review | |
If you're requested for a _copy_ review... (follow these practices) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's tricky. I'm trying to keep headings parallel.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does this PR affect close to 60 files? It shouldn't affect much more than 1.
Bad rebase. I'll fix it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once @MaryaBelanger and @sfshaza2 sign off. I'm really glad to see y'all arriving at the right set of guidelines!
@atsansone, can you address @MaryaBelanger's concerns? |
CONTRIBUTING.md
Outdated
If technical content could be made less complex or more detailed, | ||
advise the writer that this is the case in your review. | ||
Still _approve the PR_ but only if your changes are included. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this worth calling out? How are technical comments treated differently from other comments?
|
||
To conduct a consistent technical review in the Flutter website: | ||
|
||
1. [Review a PR][review-pr] when it meets the following conditions: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a lot for me to think about. Shouldn't I just review a PR if I'm asked to review it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now, GitHub actions set who reviews. The hope will be to remove this automatic setting soon. Because of this automation, a review for a PR is requested even if the author is not done with it. The review request via GitHub has lost its meaning as is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be GREAT if we could only add the DRE that is on rotation. The original plan was to use a weekly rotation to reduce the email noise for everyone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The framework team individually tags reviewers. Maybe we can copy that workflow here for the DRE who's on rotation that week?
CONTRIBUTING.md
Outdated
* Favor trusting the writer. | ||
If they stand by the changes and the copy issues are minimal, | ||
_approve the PR_. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the writer refer to the TW or the author of the PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Author. I can clarify that.
[**review.tech**][review-tech-label] to | ||
[**review.await-update**][review-await-label]. | ||
|
||
### Perform a content review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the purpose of distinguishing between these two types of reviews? There's a lot of redundant copy in these two sections, maybe we should de-dupe the instructions a bit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The appropriate reviewer can key in on one section rather than going back and forth across the page.
CONTRIBUTING.md
Outdated
|
||
[approve-pr](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/approving-a-pull-request-with-required-reviews) | ||
[add-comments](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/commenting-on-a-pull-request#adding-comments-to-a-pull-request) | ||
[search-issue](https://www.freecodecamp.org/news/github-search-tips/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should reference official docs as much as possible: https://docs.github.com/en/issues/tracking-your-work-with-issues/filtering-and-searching-issues-and-pull-requests
CONTRIBUTING.md
Outdated
1. Explain the reason for the additional changes in the PR summary, | ||
if necessary. For guidance on what to include in a PR summary, | ||
check out [this section in the Blockly docs][blockly-pr-note] | ||
or this [PullRequest.com blog post][good-pr-blog-post]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the reader is ready to write a PR summary, since they haven't pushed their code yet. You are already giving instructions for this in the "Write the PR summary using the following guidelines" section on line 72. Unless you are talking about the commit message?
Consider naming it `fix-<issue_number>` to help others find the related issue. | ||
The new branch should be based on the `main` branch or a feature | ||
or version branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't make sense that we would tell the reader what to name their branch. Instead, I would much rather we ask them to use the "fixes #number" syntax as it makes issue management easier: https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a suggestion, not a mandate. It gives them direction in case they had no other ideas.
Fixed incorrectly formatted indirect links.
@sfshaza2 , @MaryaBelanger : PTAL. |
Hi Tony. Given that last week's meeting resulting a decision to substantively change this PR, I'm going to close it. If you'd like me to work on a new PR, let me know. Otherwise, please open a new PR for the new contributing guide. |
Revises contributing guidelines. Fixes #10053