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

Enable automatic labeling of PRs via Actions #3431

Merged
merged 7 commits into from
Feb 9, 2021

Conversation

nrb
Copy link
Contributor

@nrb nrb commented Feb 8, 2021

This PR introduces 2 ways of labeling PRs:

  • Automatically via glob patterns with the labeler Action
  • Allows users to apply labels via the /kind or /area commands via the prow-github Action

It also adds a checklist that contributors should fill out upon PR creation, and updates the code standards docs to reference it.

@nrb nrb added CI/CD kind/changelog-not-required PR does not require a user changelog. Often for docs, website, or build changes labels Feb 8, 2021
- uses: jpmcb/prow-github-actions@v1
with:
# Only support /kind command for now.
# TODO: before allowing the /lgtm command, see if we can block merging if changelog labels are missing.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm wondering if we can use the /lgtm command, but make it work only if there's either a has-changelog (which should be set with the action on this PR) or changelog-not-required label on the PR.

I think this way, we could retire the confusing changelog CI check that marks a perfectly-fine PR as failing.

Copy link
Contributor

Choose a reason for hiding this comment

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

/lgtm 😆

carlisia
carlisia previously approved these changes Feb 8, 2021
Copy link
Contributor

@carlisia carlisia left a comment

Choose a reason for hiding this comment

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

Booyah, love this! 🎉

Approving but I am +1 on adding the /lgtm if you want to do that.

@nrb
Copy link
Contributor Author

nrb commented Feb 8, 2021

Approving but I am +1 on adding the /lgtm if you want to do that.

I think I'll leave it open and address that later. This PR changes a lot already, and I wanna make sure it works :)

Copy link
Contributor

@zubron zubron left a comment

Choose a reason for hiding this comment

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

Ooh, this is exciting - thanks! 🎉

@zubron zubron merged commit 5940a47 into vmware-tanzu:main Feb 9, 2021
dharmab pushed a commit to dharmab/velero that referenced this pull request May 25, 2021
* Automatically label PRs based on the file paths

Signed-off-by: Nolan Brubaker <[email protected]>

* Enable prow-like commands

Signed-off-by: Nolan Brubaker <[email protected]>

* Require filling in the PR template

Signed-off-by: Nolan Brubaker <[email protected]>

* Update contributor docs to reference PR template

Signed-off-by: Nolan Brubaker <[email protected]>

* Expand checklist and ask for issue number on PRs

Signed-off-by: Nolan Brubaker <[email protected]>

* Document why we're not enabling /lgtm yet

Signed-off-by: Nolan Brubaker <[email protected]>

* Combine PR assignment and labeling workflow

Signed-off-by: Nolan Brubaker <[email protected]>
ywk253100 pushed a commit to ywk253100/velero that referenced this pull request Jun 29, 2021
* Automatically label PRs based on the file paths

Signed-off-by: Nolan Brubaker <[email protected]>

* Enable prow-like commands

Signed-off-by: Nolan Brubaker <[email protected]>

* Require filling in the PR template

Signed-off-by: Nolan Brubaker <[email protected]>

* Update contributor docs to reference PR template

Signed-off-by: Nolan Brubaker <[email protected]>

* Expand checklist and ask for issue number on PRs

Signed-off-by: Nolan Brubaker <[email protected]>

* Document why we're not enabling /lgtm yet

Signed-off-by: Nolan Brubaker <[email protected]>

* Combine PR assignment and labeling workflow

Signed-off-by: Nolan Brubaker <[email protected]>
gyaozhou pushed a commit to gyaozhou/velero-read that referenced this pull request May 14, 2022
* Automatically label PRs based on the file paths

Signed-off-by: Nolan Brubaker <[email protected]>

* Enable prow-like commands

Signed-off-by: Nolan Brubaker <[email protected]>

* Require filling in the PR template

Signed-off-by: Nolan Brubaker <[email protected]>

* Update contributor docs to reference PR template

Signed-off-by: Nolan Brubaker <[email protected]>

* Expand checklist and ask for issue number on PRs

Signed-off-by: Nolan Brubaker <[email protected]>

* Document why we're not enabling /lgtm yet

Signed-off-by: Nolan Brubaker <[email protected]>

* Combine PR assignment and labeling workflow

Signed-off-by: Nolan Brubaker <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/CD kind/changelog-not-required PR does not require a user changelog. Often for docs, website, or build changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants