Skip to content

Commit 3f80d67

Browse files
committed
fix
1 parent 1577b70 commit 3f80d67

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

build/adapter/github.js

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/robot.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config.json.sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"name": "xxx",
99
"labels": "xxx",
1010
"command": "xxx",
11+
"preview": null,
1112
"confirm": null
1213
}
1314
]

src/adapter/github.coffee

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ class Github
55

66
# 初始化
77
constructor: (@config) ->
8-
@github = new GithubApi version: '3.0.0'
8+
@github = new GithubApi
9+
version: '3.0.0'
10+
timeout: 3000
11+
912
@github.authenticate
1013
username: @config.username
1114
password: @config.password
@@ -25,7 +28,7 @@ class Github
2528
assignee: 'none'
2629
, (err, issues) ->
2730
throw err if err?
28-
cb issues, repo
31+
cb issues, repo if issues.length > 0
2932

3033

3134
# 生成id

src/robot.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ process = (issues, repo) ->
112112
if repo.confirm?
113113
users = if repo.confirm instanceof Array then repo.confirm else repo.confirm.split ','
114114

115-
adapter.comment repo, issue, 'Waiting for confirmation by ' + ((users.map (user) -> '@' + user).join ', ') "\n\n> Please type `confirm` to confirm or type `stop` to cancel.", (currentComment) ->
115+
adapter.comment repo, issue, 'Waiting for confirmation by ' + ((users.map (user) -> '@' + user).join ', ') + "\n\n> Please type `confirm` to confirm or type `stop` to cancel.", (currentComment) ->
116116
delayDeploy = ->
117117
adapter.confirm repo, issue, users, currentComment, (repo, issue) ->
118118
adapter.comment repo, issue, "Confirmation received, deploying ...", ->

0 commit comments

Comments
 (0)