Skip to content

Commit b92c1c2

Browse files
committed
fixed
1 parent a69665a commit b92c1c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/check-issue.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ jobs:
1414
with:
1515
script: |
1616
const issueTitle = context.payload.issue.title;
17-
if (!issueTitle.startsWith("[Question]") && !issueTitle.startsWith("[Feature]") && issueTitle === "[Question] " && issueTitle === "[Feature] ") {
17+
const regex = /^\[(Question|Feature)\]\s.+/;
18+
if (!regex.test(issueTitle)) {
1819
await github.issues.update({
1920
owner: context.repo.owner,
2021
repo: context.repo.repo,

0 commit comments

Comments
 (0)