Hi all,
Kefu & I have just merged these PRs [1] that enable a Github Action to automatically label PRs based on matching paths in the changeset (minimatch syntax) [2]. The file where to specify such mappings is .github/labeler.yml:
dashboard: | |
- src/pybind/mgr/dashboard/** | |
- qa/suites/rados/dashboard/** | |
- qa/tasks/mgr/test_dashboard.py ... |
In this PoC, I only added the 'dashboard' and 'CI' labels, but I'd encourage other teams to do the same with your own subdirs, and get rid, as much as possible, of this repetitive task of manually setting labels.
This is an example of how this GH action tagged a PR [3] with the dashboard label:
In the long term we could explore how to generate/use both CODEOWNERS and labeler.yml files from the same source, as there's high redundancy between both (but not all teams have a Github team).
Kind Regards,
Ernesto Puerta
_______________________________________________ Dev mailing list -- dev@xxxxxxx To unsubscribe send an email to dev-leave@xxxxxxx