Skip to content
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

Closed
wants to merge 5 commits into from
Closed

Revises CONTRIBUTING.md #10054

wants to merge 5 commits into from

Conversation

atsansone
Copy link
Contributor

Revises contributing guidelines. Fixes #10053

@atsansone atsansone added the st.WIP Issue in progress label Jan 16, 2024
@atsansone atsansone marked this pull request as draft January 16, 2024 23:05
@flutter-website-bot
Copy link
Collaborator

flutter-website-bot commented Jan 16, 2024

Visit the preview URL for this PR (updated for commit 3f0419c):

https://flutter-docs-prod--pr10054-fix-10053-q885qn7s.web.app

@atsansone atsansone force-pushed the fix-10053 branch 7 times, most recently from 22d6153 to f063afb Compare January 16, 2024 23:53
@atsansone atsansone requested a review from RedBrogdon January 16, 2024 23:53
@atsansone atsansone added review.copy Awaiting Copy Review and removed st.WIP Issue in progress labels Jan 16, 2024
@atsansone atsansone marked this pull request as ready for review January 16, 2024 23:54
CONTRIBUTING.md Outdated Show resolved Hide resolved
@atsansone
Copy link
Contributor Author

@RedBrogdon , @sfshaza2 , @MaryaBelanger : PTAL.

Copy link
Contributor

@sfshaza2 sfshaza2 left a 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 Show resolved Hide resolved
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].
Copy link
Contributor

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
Copy link
Contributor

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].
Copy link
Contributor

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.

Copy link
Contributor Author

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].
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understood. Checking this.

Copy link
Contributor

@MaryaBelanger MaryaBelanger left a 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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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 Show resolved Hide resolved
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,
Copy link
Contributor

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.

Copy link
Contributor

@johnpryan johnpryan Jan 31, 2024

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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Contributor

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].
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Technical review comes before content review, or "copy", review.
* Technical review comes before content, or "copy", review.

CONTRIBUTING.md Outdated
Comment on lines 112 to 113
If the writer makes a change that's technically correct but could be done
differently, _approve the PR_.
Copy link
Contributor

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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* 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
Copy link
Contributor

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

Suggested change
### Review the content quality
### Copy review
If you're requested for a _copy_ review... (follow these practices)

Copy link
Contributor Author

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.

@atsansone atsansone requested a review from johnpryan as a code owner January 24, 2024 20:13
Copy link
Contributor

@sfshaza2 sfshaza2 left a 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.

@atsansone
Copy link
Contributor Author

Bad rebase. I'll fix it.

Copy link
Contributor

@RedBrogdon RedBrogdon left a 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!

@sfshaza2 sfshaza2 added review.await-update Awaiting Updates after Edits and removed review.copy Awaiting Copy Review labels Jan 31, 2024
@sfshaza2
Copy link
Contributor

@atsansone, can you address @MaryaBelanger's concerns?

CONTRIBUTING.md Outdated
Comment on lines 129 to 131
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.
Copy link
Contributor

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:
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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.

Copy link
Contributor

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
Comment on lines 183 to 185
* Favor trusting the writer.
If they stand by the changes and the copy issues are minimal,
_approve the PR_.
Copy link
Contributor

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?

Copy link
Contributor Author

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
Copy link
Contributor

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.

Copy link
Contributor Author

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/)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CONTRIBUTING.md Outdated
Comment on lines 45 to 48
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].
Copy link
Contributor

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?

Comment on lines +26 to +28
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.
Copy link
Contributor

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

Copy link
Contributor Author

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.
@atsansone
Copy link
Contributor Author

@sfshaza2 , @MaryaBelanger : PTAL.

@sfshaza2
Copy link
Contributor

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.

@sfshaza2 sfshaza2 closed this Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review.await-update Awaiting Updates after Edits
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create CONTRIBUTING file for Flutter website
8 participants