Skip to content

Commit fd04b3e

Browse files
committed
- fixed regex
1 parent 97265b1 commit fd04b3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ module.exports = (app) => {
267267
app.on(
268268
"issue_comment.created",
269269
async (context) => {
270-
const commandRegex = /^[\\\|\/\#]deploy([^$]+)$/;
270+
const commandRegex = /^[\\\|\/\#]deploy([^$]*)$/;
271271
const {
272272
comment: { body: comment },
273273
repository: { owner: { login: owner }, name: repo },
@@ -277,7 +277,7 @@ module.exports = (app) => {
277277
!comment ||
278278
!(matched = comment.toLowerCase().match(commandRegex))
279279
) {
280-
app.log.info(`Missing comment body or comment doesn't start with /deploy message`);
280+
app.log.info(`Missing comment body or comment doesn't start with /deploy message, body: ${comment}`);
281281
return;
282282
}
283283
app.log.info('issue_comment.created');

0 commit comments

Comments
 (0)