Skip to content

Commit

Permalink
fix: Remove quotes from extracted backport branch names in PR
Browse files Browse the repository at this point in the history
  • Loading branch information
marcbachmann committed May 16, 2024
1 parent 97a892d commit 1e7ae75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async function matchComments (context, commentBody) {

if (globalBranches.length) {
const pullRequest = await backport.getPullRequest(context)
const backportBranches = (pullRequest.body.match(/Backports?: (.*)/)?.[1]?.split(/[, ]/).filter(Boolean) || [])
const backportBranches = (pullRequest.body.match(/Backports?: (.*)/)?.[1]?.split(/[`, ]/).filter(Boolean) || [])
.map((b) => ({command: `/backport ${b}`, arg1: b}))

if (backportBranches.length) {
Expand Down

0 comments on commit 1e7ae75

Please sign in to comment.