Skip to content

chore: assign aws-cdk-owners members to PRs#19925

Merged
mergify[bot] merged 5 commits intomasterfrom
peterwoodworth/cdkOwnersAssignment
Apr 28, 2022
Merged

chore: assign aws-cdk-owners members to PRs#19925
mergify[bot] merged 5 commits intomasterfrom
peterwoodworth/cdkOwnersAssignment

Conversation

@peterwoodworth
Copy link
Copy Markdown
Contributor

When a PR is opened, this automation will:

  • Assign the member from aws-cdk-owners with the lowest number of currently assigned PRs to the PR
  • Do nothing if the issue was submitted by someone from aws-cdk-team

All Submissions:

Adding new Unconventional Dependencies:

  • This PR adds new unconventional dependencies following the process described here

New Features

  • Have you added the new feature to an integration test?
    • Did you use yarn integ to deploy the infrastructure and generate the snapshot (i.e. yarn integ without --dry-run)?

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

@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Apr 14, 2022

@github-actions github-actions bot added the p2 label Apr 14, 2022
@aws-cdk-automation aws-cdk-automation requested a review from a team April 14, 2022 23:47
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Apr 14, 2022
@peterwoodworth
Copy link
Copy Markdown
Contributor Author

peterwoodworth commented Apr 14, 2022

Action ran successfully, so the token works here https://github.com/aws/aws-cdk/runs/6032421375?check_suite_focus=true

Repository here, feel free to give feedback on code written. Will make this an official aws owned repo if we like how this automation works.

Also, should we disable the automatic requesting of reviews from aws-cdk-owners on top of this?

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

Thanks! I read the source code and I'll do my best to relay comments from that.

  • I think it's a bit cumbersome to have to configure both pull_request_target: types: [opened] and target: "pull-requests" on the action itself. If you omit one or the other, suddenly things don't work the way you think they do. It's more robust to exit the action gracefully if it encounters an issue when target: "pull_request", instead of relying on the workflow configuration to only send the action PRs.
  • should core-team be renamed something that conveys what it's doing, like exempt-team or exempt-members? We want the core team to be exempt from assignment (at least I do) but that's our own implementation detail.

@peterwoodworth
Copy link
Copy Markdown
Contributor Author

Changed it to exempt. I didn't like the core name either

As for the first point, I could make it so that if the issue opened is an issue then it only counts issues, and same with PRs. I think I like that better

@peterwoodworth peterwoodworth requested a review from kaizencc April 18, 2022 21:15
@kaizencc kaizencc added the pr/do-not-merge This PR should not be merged at this time. label Apr 27, 2022
Copy link
Copy Markdown
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.

I am fine with the system of assigning PRs to the lowest number of PRs currently. Since it's not what @rix0rrr originally envisioned, I'm adding do-not-merge to give him a chance to disagree.

@peterwoodworth peterwoodworth removed the pr/do-not-merge This PR should not be merged at this time. label Apr 28, 2022
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Apr 28, 2022

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 5624dc7
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@mergify mergify bot merged commit 7fd542c into master Apr 28, 2022
@mergify mergify bot deleted the peterwoodworth/cdkOwnersAssignment branch April 28, 2022 20:26
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Apr 28, 2022

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

wphilipw pushed a commit to wphilipw/aws-cdk that referenced this pull request May 23, 2022
When a PR is opened, this automation will:

- Assign the member from `aws-cdk-owners` with the lowest number of currently assigned PRs to the PR
- Do nothing if the issue was submitted by someone from `aws-cdk-team`

----

### All Submissions:

* [ ] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md)

### Adding new Unconventional Dependencies:

* [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md/#adding-new-unconventional-dependencies)

### New Features

* [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/master/INTEGRATION_TESTS.md)?
	* [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)?

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contribution/core This is a PR that came from AWS. p2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants