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

Webhooks! #345

Open
dave-tucker opened this issue Nov 17, 2016 · 3 comments
Open

Webhooks! #345

dave-tucker opened this issue Nov 17, 2016 · 3 comments

Comments

@dave-tucker
Copy link
Contributor

It would be great if DatakitCI was able to support webhooks.
I could then use this to integrate with other systems, for example, a siren that goes off when the master build is broken, or more traditionally other CI systems or things like Docker Hub/Docker Cloud.

@talex5
Copy link
Contributor

talex5 commented Nov 17, 2016

Ideally, you should do this by monitoring the database. Currently this isn't very easy because we don't actually store the overall results for a branch (but we should).

@talex5
Copy link
Contributor

talex5 commented Nov 17, 2016

But, you can monitor the current head of master and check for the GitHub status. e.g.

> cd branch/github-metadata/ro/docker/my-project
> read ref/heads/master/head
6b08890a9c68bafa38a2775ed2e519f03a2b6911
> read commit/6b08890a9c68bafa38a2775ed2e519f03a2b6911/status/ci/datakit/test/state
success

Then take action when this changes.

@dave-tucker
Copy link
Contributor Author

That requires talking to datakit though. It'd be nice for applications with no knowledge of datakit to be able to get a notification of status changes on a branch.

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

3 participants