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
Switch PR labeling to use GitHub Actions. #7630
Conversation
This decouples the PR labeling process from the main CI process, allowing them to run completely independenly of each other. The new labeling configuration is based on copying, extending, and correcting the existing labeling rules in the `labeler.sh` script which the commit is removing. Labeling is configured through `.github/labeler.yml` file. Check there for info on the exact format. The exact configuration being used will update labels on PR's whenever one is opened, updated, reopened, or marked ready for review. It will not remove existing labels from the PR, only add new ones.
Manage this branch in SquashTest this branch here: https://ferroinpr-labels-gha-ae50z.squash.io |
I've added the core team for review on this as I'd like their input to make sure the label mappings in Please don't merge until this gets a review from them. |
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 have tested that this works as expected;
@github-actions github-actions bot added the area/packaging label 29 seconds ago
In prologic/netdata#1
PR name
Comment from deleted file
I guess the title is wrong @Ferroin ? This PRs switches both PR and issues labeling? |
The comments are wrong, the script being removed hasn't done labeling of issues since we started using Issue Templates, the comments never got updated for some reason. |
Merging this. If the labels are wrong, we can just fix it later. |
This decouples the PR labeling process from the main CI process, allowing them to run completely independenly of each other. The new labeling configuration is based on copying, extending, and correcting the existing labeling rules in the `labeler.sh` script which the commit is removing. Labeling is configured through `.github/labeler.yml` file. Check there for info on the exact format. The exact configuration being used will update labels on PR's whenever one is opened, updated, reopened, or marked ready for review. It will not remove existing labels from the PR, only add new ones.
Summary
This updates the PR labeling functionality to use GitHub Actions instead of being a recurring job in Travis.
Aside from the obvious change of needing to check somewhere other than Travis to verify this is working, this results in the following changes to how automatic labeling works for PRs:
master
or the nightlies get run. This should improve responsiveness for users.area/*
label that has a corresponding set of files in the repo.Component Name
area/ci
Additional Information
Fixes: #7627
Partially mitigates the issue solved by: #7543
Minimally tested with equivalent code in a throwaway repository.