Skip to content

Commit 3a73913

Browse files
committed
Fix regex pattern for backport command to ensure it matches the end of the comment
1 parent 22001c2 commit 3a73913

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/backport.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
with:
2323
script: |
2424
const comment = context.payload.comment.body;
25-
const match = comment.match(/\/backport to release\/v(\d+\.\d+)/);
25+
const match = comment.match(/\/backport to release\/v(\d+\.\d+)$/);
2626
if (match) {
2727
const version = match[1];
2828
const label = `Backport-${version}.x-Consider`;

0 commit comments

Comments
 (0)