-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Conversation
Signed-off-by: Nolan Brubaker <[email protected]>
Signed-off-by: Nolan Brubaker <[email protected]>
Signed-off-by: Nolan Brubaker <[email protected]>
Signed-off-by: Nolan Brubaker <[email protected]>
Signed-off-by: Nolan Brubaker <[email protected]>
Signed-off-by: Nolan Brubaker <[email protected]>
- 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. |
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'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.
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 😆
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.
Booyah, love this! 🎉
Approving but I am +1 on adding the /lgtm if you want to do that.
Signed-off-by: Nolan Brubaker <[email protected]>
I think I'll leave it open and address that later. This PR changes a lot already, and I wanna make sure it works :) |
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.
Ooh, this is exciting - thanks! 🎉
* 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]>
* 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]>
* 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]>
This PR introduces 2 ways of labeling PRs:
/kind
or/area
commands via the prow-github ActionIt also adds a checklist that contributors should fill out upon PR creation, and updates the code standards docs to reference it.