launchpad should support post-commit actions via webhooks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Low
|
Unassigned |
Bug Description
The post-commit hook is a powerful thing which allows actions such as building and/or testing the software to be automated and provide immediate feedback to the appropriate people. Most VCS allow for this and github provides hooks for this as well, so there is a strong precedent for this, if not a regression of hosting code on Launchpad.
The idea is fairly simple: provide a textbox from the code page which is configured at the project level, allowing for a URL to be specified. This URL will then be POSTed to with certain information such as the branch, revision, author, and log message.
Use cases include:
* Integration with a continuous integration system such as Hudson/
* Posting to a scriptlet (http://
* Telling a mirror /
* Performing arbitrary commands on any machining listening for such messages over HTTP such as a deployment server
HTTP is a great choice because it is simple to implement, already a well understood concept by many, and plenty of services are already listening on HTTP and as such would be actionable on Launchpad commits without modification. There's also a nice python library for webhooks available called hookah: http://
Web Hook wiki: http://
GitHub guide: http://
description: | updated |
Changed in launchpad: | |
importance: | Medium → Low |
A first implementation could add hooks on a branch by branch basis, and be handled by a branch job.