-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
(extracted from #15 (comment))
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 PullRequestEvent- handle project-specific labels, e.g. a
pushlabel in monasca-docker
- handle project-specific labels, e.g. a
.bot/hooks/status.js: runs on a StatusEvent- post a comment on the relevant PR with CI results, like a link to logs or a summary of any error messages
- automatically merge on CI completion if a label is applied
We may want to execute these hooks in a sandboxed context, like vm2.