Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
cookieY committed Aug 10, 2023
1 parent a69665a commit b92c1c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/check-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
with:
script: |
const issueTitle = context.payload.issue.title;
if (!issueTitle.startsWith("[Question]") && !issueTitle.startsWith("[Feature]") && issueTitle === "[Question] " && issueTitle === "[Feature] ") {
const regex = /^\[(Question|Feature)\]\s.+/;
if (!regex.test(issueTitle)) {
await github.issues.update({
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down

0 comments on commit b92c1c2

Please sign in to comment.