-
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
[Feature Request] Define GitHub labels in a file in source control #12572
Comments
This would be awesome project-wide. |
@andrross this is a good suggestion but maintainers should be able to create new labels as well and they don’t need to rely on admin. |
I like this idea. It would be helpful to add the |
@andrross how can we use this source control based labeling to define a base set of labels at the project level? All repos should inherit those labels for consistency - in addition, repo maintainers can define a few extra labels at their repo level. |
@Pallavi-AWS The quickest way I see to do this is to define the common labels in the
where the This should be quick and easy, with the only hangup is that it has to happen in every repository. |
@andrross can't we take advantage of https://github.com/opensearch-project/project-meta?tab=readme-ov-file#create-or-update-labels-in-all-repos and manage it globally? |
@bbarani Yes, we can. If the goal is that all repositories just have a common base set of labels, then we can define them in a base repository and build something (maybe a github action) that will use a CLI tool like what you linked to create them in every repo. Then each repo is free to add or remove additional labels however they like. However, if the goal is to have source files be the authoritative source of truth for labels (that was kind of the intent of this issue), then we'd want something like what I previously linked because it will remove any labels that were created out-of-band. I think we could potentially do both. As long as any repo that opts in to using the |
@andrross Also came across this GH action which lets you define different label groups and then mapping of repo to label group. It seems like for this to work it needs shared secret token at org level which will have permissions to read/write to different repos in that org. Not completely sure on the permission model here. |
FWIW I was trying to play with |
That repo was last updated almost 2 years ago so I wouldn't use it for this purpose. |
Actually there was an issue with the configuration of GitHub action which @andrross pointed out. So it is working as expected. I think we can use this GitHub action to keep common set of the labels synced across the repositories and let each repo creates its own as needed too (i.e. with |
IMO the requirements are:
|
Is your feature request related to a problem? Please describe
GitHub labels can be added and removed by repo
adminsmaintainers, but there's no clear process for how new labels get added or removed. If they were defined in a file in source control, then label additions/removals could happen via the PR process. Any contributor could propose a change and that could be discussed via the PR.Describe the solution you'd like
There is a GitHub action that provides this functionality: https://github.com/marketplace/actions/manage-github-labels
Related component
Other
The text was updated successfully, but these errors were encountered: