Skip to content

Add regex filtering for copySourcePRLabels#552

Merged
sorenlouv merged 3 commits into
mainfrom
add-regex-support-copy-source-pr-labels
Oct 30, 2025
Merged

Add regex filtering for copySourcePRLabels#552
sorenlouv merged 3 commits into
mainfrom
add-regex-support-copy-source-pr-labels

Conversation

@sorenlouv

@sorenlouv sorenlouv commented Oct 30, 2025

Copy link
Copy Markdown
Owner

Allow copySourcePRLabels to accept true, a regex string, or an array of regexes so config can limit which labels get copied.

Example

{
  "copySourcePRLabels": [
    "^release_note:\\w+$",
    "^version-\\d+$"
  ]
}

If the source pull request contains labels such as release_note:fix and version-33 those labels will be added to the target pull request.

Closes #529

@sorenlouv sorenlouv merged commit 7dcd91e into main Oct 30, 2025
2 of 3 checks passed
@sorenlouv sorenlouv deleted the add-regex-support-copy-source-pr-labels branch October 30, 2025 09:52
@sorenlouv

sorenlouv commented Oct 30, 2025

Copy link
Copy Markdown
Owner Author

Released in 10.2.0

alpar-t added a commit to alpar-t/backport-github-action that referenced this pull request Oct 31, 2025
This updates the backport CLI dependency from 9.5.1 to 10.2.0 to support
the new copySourcePRLabels regex filtering feature introduced in:
sorenlouv/backport#552

The copySourcePRLabels option now accepts regex patterns to selectively
copy labels from source PRs to backport PRs.
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.

1 participant