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 --copy-source-pr-labels option and rename --add-original-reviewers to --copy-source-pr-reviewers #474

Merged
merged 4 commits into from
Sep 2, 2023

Conversation

sorenlouv
Copy link
Owner

@sorenlouv sorenlouv commented Sep 2, 2023

Closes #456

When enabled, copySourcePRLabels will copy any non-backport labels from the source pull request and persist it on the target pull request.

It can be used in the config like:

{
  "copySourcePRLabels": true
}

And via CLI:

backport --copy-source-pr-labels

This option is quite similar to addOriginalReviewers and their names have therefore been aligned:

backport --copy-source-pr-labels --copy-source-pr-reviewers

@sorenlouv sorenlouv changed the title Add syncSourcePRLabels Add --sync-source-pr-labels options Sep 2, 2023
@sorenlouv sorenlouv changed the title Add --sync-source-pr-labels options Add --copy-source-pr-labels options Sep 2, 2023
@sorenlouv sorenlouv changed the title Add --copy-source-pr-labels options Add --copy-source-pr-labels option and rename --add-original-reviewers to --copy-source-pr-reviewers Sep 2, 2023
@sorenlouv sorenlouv enabled auto-merge (squash) September 2, 2023 21:27
@sorenlouv sorenlouv disabled auto-merge September 2, 2023 23:41
@sorenlouv sorenlouv force-pushed the add-syncSourcePRLabels branch from c4330b4 to 0a226f1 Compare September 2, 2023 23:42
@sorenlouv sorenlouv enabled auto-merge (squash) September 2, 2023 23:42
@sorenlouv sorenlouv merged commit b642721 into main Sep 2, 2023
@sorenlouv sorenlouv deleted the add-syncSourcePRLabels branch September 2, 2023 23:49
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.

Option to copy labels from target to source
1 participant