This is an incredible repo, amazing code and even better docs. 馃憦馃憦馃憦
One minor nitpick, would it be possible to teach the dispatch to operate on PR review comments. Right now github doesn't dispatch an issue_comment event for a "top level" review comment, even though it shows up like a comment in the PR thread. I believe it dispatches a pull_request_review event, and from a quick peak at main.js I don't think slash-command-dispatch will be able to process these events?
|
// Check required context properties exist (satisfy type checking) |
|
if ( |
|
!github.context.payload.action || |
|
!github.context.payload.issue || |
|
!github.context.payload.comment |
|
) { |
|
throw new Error('Required context properties are missing.') |
|
} |
|
|
|
// Only handle 'created' and 'edited' event types |
|
if (!['created', 'edited'].includes(github.context.payload.action)) { |
|
core.warning( |
|
`Event type '${github.context.payload.action}' not supported.` |
|
) |
|
return |
|
} |
@peter-evans Do you think this would be feasible?
This is an incredible repo, amazing code and even better docs. 馃憦馃憦馃憦
One minor nitpick, would it be possible to teach the dispatch to operate on PR review comments. Right now github doesn't dispatch an
issue_commentevent for a "top level" review comment, even though it shows up like a comment in the PR thread. I believe it dispatches a pull_request_review event, and from a quick peak atmain.jsI don't thinkslash-command-dispatchwill be able to process these events?slash-command-dispatch/src/main.ts
Lines 16 to 31 in 2ce216d
@peter-evans Do you think this would be feasible?