Skip to content

Commit 2d41d26

Browse files
committed
fix: title regex in PR labeler
1 parent d4b5920 commit 2d41d26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/PR.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
const pr = await github.rest.pulls.get({ owner, repo, pull_number: issue_number });
1717
const title = pr.data.title;
1818
const labRegex = /\[LAB(\d+)\]/;
19-
const titleRegex = /\[LAB\d+\] [\da-zA-Z]+/;
19+
const titleRegex = /^\[LAB\d+\] [\da-zA-Z]+$/;
2020
2121
if (!titleRegex.test(title)) {
2222
core.setFailed('PR title does not match the required format. Please use the format [LAB#] student#.');

0 commit comments

Comments
 (0)