-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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: fix labeler action globs and add auto add package labels #4946
Conversation
Deploy preview for carbon-components-react ready! Built with commit 3f4251e https://deploy-preview-4946--carbon-components-react.netlify.com |
Deploy preview for the-carbon-components ready! Built with commit 3f4251e https://deploy-preview-4946--the-carbon-components.netlify.com |
Deploy preview for carbon-elements ready! Built with commit 3f4251e |
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 👍 - Thanks @mattrosno! Wanted to see dry-runs on private repos done, while I imagine it's done already.
…on-design-system#4946) * chore: fix labeler action globs and add auto add package labels * chore: make action label open PRs every 5 mins instead of on PR creation Co-authored-by: Josh Black <josh@josh.black>
Fixes the GitHub action that labels every new PR with
squad: system
so we can consolidate ZenHub workspaces. Glob syntax from actions/labeler#28 (comment).Adds package labels as well to get a better feel for "splash zone" for each PR - better see which packages are affected by the PR. New package labels will also allow us to run analysis for reporting in the future.
Update
The default action doesn't work when the PR originated from a fork, due to read-only permissions of the GH token. (See actions/labeler#12 (comment).) This new approach adds a cron job that runs every 5 minutes on the master branch to label open PRs based on file patterns: https://github.com/marketplace/actions/periodic-labeler