Open HonkingGoose opened 2 years ago
Like to have then at all our repos. Anybody knows how to make that semi automatic?
This could be a start:
Organization owners can manage default labels for repositories in the organization.
For existing repos, the API^api could be used, for example, there is this EddieHubCommunity/gh-action-open-source-labels Github Actions which relies on xavierchow/github-label-template, but nothing standing out (more on the marketplace https://github.com/marketplace?type=actions&query=repository+label), a small script may be enough for a one time thing.
I've collected the list of our current "basic labels" that we use over on the Renovate repository:
Created them for this repo
Oh wow, that's really cool! 😄 👍
I'll go apply the new labels to our existing issues.
The priority-3-normal
label is missing from the label list.
Maybe there's a problem in the code that creates the priority-3-normal
label? Maybe a problem with the special character escapes???
['priority-3-normal']='Default priority, "should be done" but isn'\''t prioritised ahead of others'
These descriptions are wrong:
// Current code:
['type:refactor']='Issues which should be converted to discussion'
['type:help']='Refactoring or improving of existing code'
It should be:
// Improved code:
['type:refactor']='Refactoring or improving of existing code'
['type:help']='Issues which should be converted to discussion'
Oops I fixed these labels
@maxbrunet Thank you for fixing the script and the labels! 🥳
Can we put this script in a new repository under our organization? That way we can grab the script when we're making a new repository and get the labels set-up correctly. If the organization default labels change, they can be changed with a PR to the script repository.
Or we could let @rarkins set up the default labels for the organization? ^gh-docs
i prefer our .github
repo
i prefer our
.github
repo
I totally forgot about that repository! 🙈 It should go in there! 😉
The script is very basic and does not support updating labels, so even if it was a fun exercise to write it, I do not think we should use it.
What about this Probot app: https://github.com/probot/settings?
It supports configuring nearly everything including labels via PR, and inheritance from the .github
repo
Edit: Looks like there is an issue, the inheritance has never been working
The script is very basic and does not support updating labels, so even if it was a fun exercise to write it, I do not think we should use it.
We could still put the script in renovatebot/.github
and use it after we've created a new repository to set all the basic labels on the new repository? Or do you think that's also a bad idea? 😄
Right now we have very basic labels like
bug
,enhancement
etc.I'd like to have these labels copied from the Renovate bot repository:
status:
type:
priority
What do you think? Do you want the labels to be the same, or are you happy with just the basic labels?
I don't have the rights to create labels, so these will need to be copy/pasted by someone with
write
level rights.