Skip to content

Commit e96a604

Browse files
committed
get-webhook-event-payload: also handle issue comments
Not all slash commands run from PR comments... Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 390251e commit e96a604

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

get-webhook-event-payload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
while (args.length) {
1313
let option = args.shift()
1414

15-
const issueCommentMatch = option.match(/^https:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+#issuecomment-(\d+)$/)
15+
const issueCommentMatch = option.match(/^https:\/\/github\.com\/([^/]+)\/([^/]+)\/(?:pull|issues)\/\d+#issuecomment-(\d+)$/)
1616
if (issueCommentMatch) {
1717
eventType = 'issue_comment'
1818
const githubRequest = require('./GitForWindowsHelper/github-api-request')

0 commit comments

Comments
 (0)