Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repository hooks #19

Open
timothyb89 opened this issue Oct 19, 2017 · 0 comments
Open

Repository hooks #19

timothyb89 opened this issue Oct 19, 2017 · 0 comments

Comments

@timothyb89
Copy link
Member

(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 push label in monasca-docker
  • .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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant