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

Add option to dynamically specify a list of labels to be added to created PRs #103

Closed
geekpete opened this issue Jan 25, 2019 · 2 comments
Closed

Comments

@geekpete
Copy link

I see adding labels is possible by using the config file but it would be neat to be able to specify labels at runtime with a parameter.
It might also be good to have two modes to do this, one for replacing the label list (eg only using the provided list) and another for providing additional labels to any already defined in the config file.

@geekpete geekpete changed the title Add option to dynamically specifiy a list of labels to be added to created PRs Add option to dynamically specify a list of labels to be added to created PRs Jan 29, 2019
@sorenlouv
Copy link
Owner

This is now mostly possible after #115 has been merged.

You can do

backport --branch 6.0 --upstream elastic/elasticsearch --labels myLabel

Note: this will replace any labels specified in .backportrc.json config file. I can probably add an option like --append-label - or would it be better if --labels appended automatically instead of overwriting?

@sorenlouv sorenlouv reopened this Apr 28, 2019
@sorenlouv
Copy link
Owner

Closing this. LMK if it needs to be re-opened.

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