File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2424 const issue_number = process.env.ISSUE_NUMBER
2525 const owner = process.env.REPO_OWNER
2626 const repo = process.env.REPO_NAME
27- const EXTERNAL_LINK_REGEXT = /https:\/\/(?!((\w+\.)?github\.com|github\.com|(\w+\.)?magickbase\.com|(\w+\.)?nervos\.org))/gi
27+ const EXTERNAL_LINK_REGEXT = /https? :\/\/(?!((\w+\.)?github\.com|github\.com|(\w+\.)?magickbase\.com|(\w+\.)?nervos\.org))/gi
2828 if (spam_words.some(w => comment.includes(w))) {
2929 console.info(`Spam comment: ${comment}`)
3030 github.rest.issues.deleteComment({ owner, repo, comment_id })
4646 ISSUE_NUMBER : ${{ github.event.issue.number }}
4747 REPO_OWNER : ${{github.repository_owner }}
4848 REPO_NAME : ${{ github.event.repository.name }}
49- SPAM_WORDS : ${{ github. secrets.SPAM_WORDS }}
49+ SPAM_WORDS : ${{ secrets.SPAM_WORDS }}
You can’t perform that action at this time.
0 commit comments