Skip to content
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

Change default labels? #42

Closed
FaGru3n opened this issue Nov 15, 2023 · 3 comments
Closed

Change default labels? #42

FaGru3n opened this issue Nov 15, 2023 · 3 comments

Comments

@FaGru3n
Copy link
Contributor

FaGru3n commented Nov 15, 2023

Hi all,

we got a more general question it is possible to modificate "Org"-lables with otterdog did not find any related config for labels in the playground.

see eclipse-tractusx/sig-release#364

@netomi
Copy link
Contributor

netomi commented Nov 15, 2023

Currently there is no support for managing labels of a repository via otterdog. Technically its perfectly possible but I was not doing it so far as it would require you to manage the labels via otterdog, which might be too tedious.

One thing that I could imagine that would work is that otterdog does not fully synchronize the labels based on the configuration, but rather makes sure that the ones found in the config are present in the repo. So it will not complain about missing labels in the config, but only ensure that all labels that you have specified are also available live.

That could help to setup a common set of labels for all repos. However, this would have to be done on repo level as there is no concept of organization labels. This could be modelled with a template function for any tractus-x repo, that has a certain set of labels pre-configured.

@FaGru3n
Copy link
Contributor Author

FaGru3n commented Nov 15, 2023

hi @netomi, thanks for the fast input.

My intention maybe to allign with Eclipse Foundation an give them a list with default lables for the organisation and then every new repo with will have theese lables.

and for the already created ones we could use your template idea... to ensure that the config "default" labels are present.

@netomi
Copy link
Contributor

netomi commented Nov 15, 2023

I guess you refer to this kind of configuration:

image

For that config there does not seem to be no api that we can easily access. Otherwise it would be quite reasonable to configure it with otterdog.

@FaGru3n FaGru3n closed this as completed Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants