Open timothyb89 opened 6 years ago
(extracted from https://github.com/monasca/pr-bot/issues/15#issuecomment-325538623)
Since the PR bot is handling GitHub hooks anyway, it could be a convenient way to add repo-specific event handlers. In addition to repository and module specific configuration (#15), we could also let users drop in .js scripts:
Some thoughts:
.bot/hooks/pull_request.js
push
.bot/hooks/status.js
We may want to execute these hooks in a sandboxed context, like vm2.
(extracted from https://github.com/monasca/pr-bot/issues/15#issuecomment-325538623)
Since the PR bot is handling GitHub hooks anyway, it could be a convenient way to add repo-specific event handlers. In addition to repository and module specific configuration (#15), we could also let users drop in .js scripts:
Some thoughts:
.bot/hooks/pull_request.js
: runs on a PullRequestEventpush
label in monasca-docker.bot/hooks/status.js
: runs on a StatusEventWe may want to execute these hooks in a sandboxed context, like vm2.