Web Hooks API with Codesion
A little known but powerful feature offered by Codesion is our Web Hooks, also known as Call back API or post-commit hooks. Web hooks allow developers to specify their own URL, which Codesion calls after each commit to your code repository.
Here is an example of a URL you’d tell us to call after each commit.
Following your commit, Codesion passes all relevant information to the URL such as…
youngest(345 – revision number)
commit log message(my dog ate my last commit)
service(cvs | svn)
…this feature was introduced over 3 years ago, and recently we’ve had a lot of requests for it, so we figured we’d make a bit of ‘noise’ about it here.
Fig 1: Specifying the URL we POST to after you commit. Found under “Services” -> “Commits Hooks” in our UI.
Internally, Codesion developers find web hooks useful for automatically executing operations after commiting to their Codesion repository. Here are some examples of how one might use our Codesion’s Web Hooks:
- Fire off a build from your trunk or branch automatically
- Depending on your business logic and requirements, automatically update your internal systems.
- Notify relevant parties automatically after each commit
Individual development teams will have specific requirements for the tasks they wish to perform after each commit depending on internal business logic. Codesion offers the power and flexibility through our Web Hooks API to automate your specific post-commit processes.
Check out our technical reference for the gory details.