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

Allow configuring RegEx patterns for copySourcePRLabels #529

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nielsbauman
Copy link

Currently, we only allow copying over either all or no labels. With this commit, we also allow specifying a list of RegEx patterns that will be used to conditionally copy over labels.

This is useful when you don't want to copy over all labels, but you also don't want to manually specify every time which labels you want to be copied over.

Currently, we only allow copying over either all or no labels. With this
commit, we also allow specifying a list of RegEx patterns that will be
used to conditionally copy over labels.

This is useful when you don't want to copy over all labels, but you also
don't want to manually specify every time which labels you want to be
copied over.
@@ -31,7 +31,7 @@ type Options = Partial<{
cherrypickRef: boolean;
commitConflicts: boolean;
commitPaths: string[];
copySourcePRLabels: boolean;
copySourcePRLabels: boolean | string[];
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't able to figure out a way to make this change in cliArgs.ts. We could also define a new option instead of allowing two types in the existing option, if that's preferred. Let me know what you think.

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

Successfully merging this pull request may close these issues.

None yet

1 participant