Web Hooks API with Codesion

October 13, 2009 CollabNet VersionOne

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.

http://mydomain.com/cgi-bin/webHookCodesion.cgi

Following your commit, Codesion passes all relevant information to the URL such as…

  • author (Mark Bathie)
  • date (2009-10-14 12:00:00)
  • youngest (345 – revision number)
  • commit log message (my dog ate my last commit)
  • organization (Codesion)
  • 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.

web hooks api with codesion

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.

Previous Article
Thoughts on Enterprise Agile in Australia

With the Agile Australia conference about to be held in Sydney in October, iTWire recently ran a story teas...

Next Article
Video: Michael James Interviewed by DZone

Danube CST Michael James was recently interviewed by DZone’s Lindsey Clevesy about the benefits and pitfall...