How do I use Subversion Webhooks? | projectlocker

How do I use Subversion Webhooks?

Subversion Webhooks allow a URL of your choosing to be sent data about every commit to your Subversion repository. You can find an introduction to Webhooks here:

http://www.webhooks.org

and more information is available here:

https://webhooks.pbworks.com

To get started, navigate to the Webhooks settings for the project by clicking the Projects tab at the top. Click the gear icon on the right next to the name of your project. Highlight the SVN Actions link, and select "Manage Webooks" to get to the Webhooks management screen. On that screen, enter the URL of your Webhook server and save the settings.

On each commit, our servers will send an HTTP POST message with a single parameter: commit_information. The value for this parameter will be a JSON-encoded hash with the following structure:

{
    :timestamp => commit.timestamp
    :author => commit.author
    :message => commit.message 

    :project => commit.project_name
    :repository_url => commit.repository_url
    :revision => commit.revision
    :trac_url => commit.trac_url
    :added => commit.array_of_added_files
    :modified => commit.array_of_modified_files
    :deleted => commit.array_of_deleted_files
}