Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite9d6218

Browse files
xuexbyugasun
authored andcommitted
chore: update error judgment
1 parent22f8f9c commite9d6218

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

‎src/modules/issues/replyInvalid.js‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,15 @@ const {
1212

1313
constcomment=[
1414
'hi @{user},非常感谢您的反馈,',
15-
'但是由于您没有使用 [规范的issue](https://github.com/xuexb/github-bot#issue-规则) 格式, 将直接被关闭, 谢谢!'
15+
'但是由于您没有使用 [创建 issue](https://xuexb.github.io/github-bot/create-issue.html) 页面提交, 将直接被关闭, 谢谢!'
1616
].join('')
1717

18-
constmatch=str=>{
19-
return/nodeversion:\s*[vV]?(\d\.?)+/.test(str)
20-
}
21-
2218
functionreplyInvalid(on){
2319
on('issues_opened',({ payload})=>{
2420
constissue=payload.issue
2521
constopener=issue.user.login
2622

27-
if(!match(issue.body)){
23+
if(issue.body.indexOf('<!-- by create-issue -->')===-1){
2824
commentIssue(
2925
payload,
3026
format(comment,{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp