You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gh label accept repositories and orgs as parameter #12359
It's great that gh can now manage labels via gh label on a repository.
What was confusing or gave you pause?
The gh label command could not take an organization or repository as a command-line option. Even when running the application within a directory for a repository it wanted to work on the default repository set by gh repo set-default and the command-line parameters did not include any way to specify a repository or organization to work with.
Are there features you'd like to see added?
I manage multiple GH organizations and many repositories and would love to be able to also work at the organization level. I am trying to be able to standardize some things across numerous repositories and use org labels to do so.
@BenjamenMeyer : Thank you for taking the time to offer feedback and enhancement idea! ✨
I'd like to hear more how you envision org support would help in your tasks:
Would this manage the default labels that new repos receive?
yes; though I didn't quite realize that's what I would be doing. But yes.
Are you trying to add / edit / remove a specific label to all existing repos?
And yes.
My ultimate goal is to be able to standardize an organization with a given set of labels - adding and removing appropriately. If I need to list through my repositories and pass in each via a parameter that's fine with me - it's easy enough to script; but I don't want to be using gh repo set-default for each iteration of the loop.
Okay...taking a closer look again I can see the -R /--repo switch - not sure why I didn't see that yesterday. That said, I still want to be able to modify the labels at the organization level and just specifying an organization does not work.
Thank you for your issue! We have categorized it as a feature request, and it has been added to our backlog. In doing so, we are not committing to implementing this feature at this time, but, we will consider it for future releases based on community feedback and our own product roadmap.
Unless you see the
help wantedContributions welcome
label, we are not currently looking for external contributions for this feature.
If you come across this issue and would like to see it implemented, please add a thumbs up! This will help us prioritize the feature. Please only comment if you have additional information or viewpoints to contribute.
Activity
andyfeller commentedon Dec 22, 2025
@BenjamenMeyer : Thank you for taking the time to offer feedback and enhancement idea! ✨
I'd like to hear more how you envision org support would help in your tasks:
Would this manage the default labels that new repos receive?
Are you trying to add / edit / remove a specific label to all existing repos?
BenjamenMeyer commentedon Dec 23, 2025
yes; though I didn't quite realize that's what I would be doing. But yes.
And yes.
My ultimate goal is to be able to standardize an organization with a given set of labels - adding and removing appropriately. If I need to list through my repositories and pass in each via a parameter that's fine with me - it's easy enough to script; but I don't want to be using
gh repo set-defaultfor each iteration of the loop.Okay...taking a closer look again I can see the
-R/--reposwitch - not sure why I didn't see that yesterday. That said, I still want to be able to modify the labels at the organization level and just specifying an organization does not work.williammartin commentedon Feb 11, 2026
I can't see an API endpoint to manage the default labels an org provides to repos as described in these docs: https://docs.github.com/en/organizations/managing-organization-settings/managing-default-labels-for-repositories-in-your-organization, sorry!
I've asked the team that owns repos about this but in the meantime I'm going to label this
enhancementandblocked.github-actions commentedon Feb 11, 2026
Thank you for your issue! We have categorized it as a feature request, and it has been added to our backlog. In doing so, we are not committing to implementing this feature at this time, but, we will consider it for future releases based on community feedback and our own product roadmap.
Unless you see the help wantedContributions welcome
label, we are not currently looking for external contributions for this feature.
If you come across this issue and would like to see it implemented, please add a thumbs up! This will help us prioritize the feature. Please only comment if you have additional information or viewpoints to contribute.