-
Notifications
You must be signed in to change notification settings - Fork 249
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
add automatic labeling of PR types from package lists #1884
Comments
A new Issue was created by @slava77 Slava Krutelyov. @Dr15Jones, @perrotta, @dpiparo, @rappoccio, @makortel, @smuzaffar can you please review it and eventually sign/assign? Thanks. cms-bot commands are listed here |
@slava77 , so basically we extend https://github.com/cms-sw/cms-bot/blob/master/categories_map.py and add also a mapping for labels/packages e.g. something like [a]? And I guess the [a]
|
not exactly, or at least not at the level it's done in categories_map/categories py files. As an example for tracking, I'd like to see for PRs touching packages in e.g. The syntax can indeed be similar to what you quoted. One wish item, even for the current |
Blocking labels are defined via
though doable but not allowing the wildcard helps bot finding out new packages. It has helped in past to avoid creation of new packages and including the changes in existing packages :-) So I would like to keep it as it is |
Good point, but still this seems more appropriate for blocking labels. |
yes we can support that for non-blocking labels. |
@slava77 , #1914 should allow to create a mapping for |
As a follow up to #1916 we also expect a functionality to label a PR based on file name (regexp, possibly). |
@slava77 , I am updating bot to allow file name level match. I will alos add regexp support |
just to be sure, will this labeling be an OR with the manual labeling? I'm thinking specifically of when in a change 1 in cms-bot repo a package matches the label and then in a later change 2 it does not. |
yes , you get union of automatic and manual labels. Bot will first calculate the automatic labels and then add/remove any manual labels. you should be able to comment |
closing it as this has been complete |
to simplify searching/monitoring a list of relevant PRs, I'd like to introduce possibility to add lists of packages which, if modified in a PR will trigger a label for the PR.
This is instead of manual
type xyz
.Opt-in strategy is probably OK.
This can start with a map file connecting type label with a list of packages.
Relevant
@cms-sw/xyz-{pog,dpg}-l2
would then be able to propose or signoff (if someone else decides to propose) on the acceptable lists.The text was updated successfully, but these errors were encountered: