Skip to content

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.
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.

2 participants