Skip to content

Commit 22001c2

Browse files
TravisEz13Copilot
andauthored
Update .github/workflows/backport.yml
Co-authored-by: Copilot <[email protected]>
1 parent a4856d4 commit 22001c2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/backport.yml

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

0 commit comments

Comments
 (0)