Post-Receive Hooks

Last updated by Adam West on October 09, 2020 10:08

You can setup post-receive hooks which will allow you to call external URLs whenever you push (or commit in the case of SVN) to your repository.

To add a new hook, visit the Repos page and click the Settings button found on the right hand side.

Then click the Post-Receive Hooks tab:

Enter the URL where the hook will be delivered to, and if you require authenticatation, click Add HTTP authentication details:

  • Username is the username that will be used for basic auth when making the request
  • Password is the password that will be used for basic auth when making the request

Example POST Payload

		    "url":"",                     "status":"active"
		"name":"Dan Quinney",     
			"name":"Dan W",
		"timestamp":"Thu, 04 Apr 2013 16:15:15 +0100",   		

Diagnosing hook issues

Once your hook has been set up, you can use the "Test" button to check you're able to successfully communicate with the external endpoint, and if needed, hover over the counter on the left-hand side to view the last response if it was an error.