Skip to content

Commit abde78f

Browse files
committed
- fixed comment
1 parent ed88377 commit abde78f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ module.exports = (app) => {
198198
} = context.payload;
199199
if (
200200
!comment ||
201-
comment.indexOf(command) !== -1
201+
comment.indexOf(command) === -1
202202
) {
203-
app.log.debug(`Missing comment body or comment doesn't start with /deploy message`);
203+
app.log.info(`Missing comment body or comment doesn't start with /deploy message`);
204204
return;
205205
}
206206
app.log.info('issue_comment.created');
@@ -212,14 +212,15 @@ module.exports = (app) => {
212212
await syncConfig(context, owner);
213213

214214
if (!pullNumber) {
215-
app.log.debug('Cannot find pull request. Deploy dismissed.');
215+
app.log.info('Cannot find pull request. Deploy dismissed.');
216216
return;
217217
}
218218

219219
const components = context.payload.comment.body
220220
.toLowerCase()
221221
.substr(command.length)
222222
.split(' ')
223+
.filter(Boolean)
223224
.map((component) => {
224225
const parts = component.split(':');
225226
return {

0 commit comments

Comments
 (0)