We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a69665a commit b92c1c2Copy full SHA for b92c1c2
.github/workflows/check-issue.yml
@@ -14,7 +14,8 @@ jobs:
14
with:
15
script: |
16
const issueTitle = context.payload.issue.title;
17
- if (!issueTitle.startsWith("[Question]") && !issueTitle.startsWith("[Feature]") && issueTitle === "[Question] " && issueTitle === "[Feature] ") {
+ const regex = /^\[(Question|Feature)\]\s.+/;
18
+ if (!regex.test(issueTitle)) {
19
await github.issues.update({
20
owner: context.repo.owner,
21
repo: context.repo.repo,
0 commit comments