Repository Hosting

Repository Hosting: Unlimited Subversion, Git, Mercurial, and Trac Projects

Rh
VCS Hosting

Frequently Asked Questions

What is the XML schema and URL format used for custom callbacks?

GET

This custom callbacks sends a simple HTTP GET request to the URL you specify. You may also set a username and password to use for basic authentication. The variables $REV, $PROJ, and $BRANCH may be used in the URL and will be replaced by the revision or commit id, the project abbreviation, and the name of the branch (Git and Hg only), respectively. For example:

GET http://myserver.com/ci/notify_commit?rev=$REV&proj=$PROJ&branch=$BRANCH
POST

This custom callback sends an HTTP POST request to the URL of your choice, optionally passing the username and password for basic authentication. The data is sent as XML and contains the revision, author, created at date, log message, and branch name (Git and Hg only) of the commit, along with the name of project. For example:

POST http://bob:12345@mycompany.com/notifications

<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <revision>0cea058405ad688bf4d6486d090e0e70f9111545</revision>
  <author>Bob Smith (bob@mycompany.com)</author>
  <created_at>2011-12-03T12:53:53+00:00</created_at>
  <log>Added a new module to the project.</log>
  <branch>master</branch>
  <project>myproject</project>
</commit>