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

chore(prlint): apply needs-maintainer-review label when PR is assigned #27770

Closed

Conversation

laurelmay
Copy link
Contributor

PRs can only be assigned by members with write access. If a PR has been assigned to someone, remove the needs-community-review label (since it implies a maintainer is already working on that PR) and apply the needs-maintainer-review label. In order to facilitate this, the pull_request_target event should also be run when a PR is assigned/unassigned.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions github-actions bot added the p2 label Oct 31, 2023
@aws-cdk-automation aws-cdk-automation requested a review from a team October 31, 2023 03:00
@github-actions github-actions bot added the star-contributor [Pilot] contributed between 25-49 PRs to the CDK label Oct 31, 2023
PRs can only be assigned by members with write access. If a PR has been
assigned to someone, remove the `needs-community-review` label (since it
implies a maintainer is already working on that PR) and apply
the `needs-maintainer-review` label. In order to facilitate this, the
`pull_request_target` event should also be run when a PR is
assigned/unassigned.
@laurelmay laurelmay force-pushed the prlint-maintainer-review-for-assigned branch from 2634115 to 15415b8 Compare October 31, 2023 03:47
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 15415b8
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@aws-cdk-automation aws-cdk-automation added the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Oct 31, 2023
Copy link
Contributor

@kaizencc kaizencc left a comment

Choose a reason for hiding this comment

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

Hi @kylelaker -- thanks for your interest in a niche part of our tooling system :). I'm not 100% sold on the implication that assigning a maintainer to a PR means we are not open to a community review. This necessitates a conversation on what a maintainer assignment implies. I argue that if I assign myself to a PR I am committing to reviewing the PR, but I wouldn't be against having a community review to help me out. (I also don't really assign myself to PRs anymore, and there's not currently an internal meaning attached to assignment beyond "dibs"). My worry is that if a maintainer assigns themself to a PR and then forgets about it, then suddenly that PR is ineligible for community review because of an oversight. That being said, I can see how assignment also means that a maintainer review is imminent.

Is this PR in response to an instance or two where your effort was wasted due to an assignment? I'm inclined to just approve this PR but I would love to be convinced further by a clear need.

// 2) is already community approved
// 3) is authored by a core team member
if (readyForReview && (fixesP1 || communityApproved || pr.labels.some(label => label.name === 'contribution/core'))) {
// 1) is assigned
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
// 1) is assigned
// 1) is assigned to core team member

@laurelmay
Copy link
Contributor Author

Is this PR in response to an instance or two where your effort was wasted due to an assignment? I'm inclined to just approve this PR but I would love to be convinced further by a clear need.

Honestly I've just been seeing a few in https://github.com/aws/aws-cdk/pulls?q=is%3Apr+is%3Aopen+label%3Apr%2Fneeds-community-review that are assigned and didn't want to step on toes 😄 So if this isn't wanted or provides unclear value, definitely happy to close it! I meant to start a conversation around it before opening the PR but for some reason ran gh pr create instead of just pushing.

@kaizencc
Copy link
Contributor

kaizencc commented Nov 2, 2023

Hey @kylelaker, got some feedback internally that there is no reason to take the label off in these cases. We still welcome our trusted community input, and the risk of PRs falling through the cracks due to this mechanism is not low. In general though, I am very happy to entertain ideas on how to streamline our processes, which we can discuss over on cdk.dev as well. Closing this for now.

@kaizencc kaizencc closed this Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2 pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. star-contributor [Pilot] contributed between 25-49 PRs to the CDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants