Github WebHook Setup Example

Updated 11 months ago by Iván Minaya

Open your Git Repository and click on the Settings tab (if you do not see the Settings, please comm touch with your admin). Then click on the "Webhooks" menu item and then click on the "Add Webhook" button.

Fill the following information on the webhook configuration page:

  1. Payload URL: The Pull Request Webhook URL with the base URL of the Org where Copado is installed and your API Key.
    1. e.g. https://copado.herokuapp.com/j...
  2. Content Type: Select "application/json"
  3. Secret: Leave it empty
  4. Which events would you like to trigger this webhook?: Click on the "Let me select individual events" checkbox.


Then select the Pull requestPull request review and Issue comment events (leave all other deselected). 

Leave the Active checkbox selected and then click "Add webhook".

  • GitLab

    1. Set up a new repository webhook on GitLab. To do so open the Settings menu of your repository and click on Integrations to open the Integrations Settings page.
    2. Fill the following information on the Integrations Settings page and click on Add webhook:
      • URL: The Pull Request Webhook URL with your API key
      • Secret Token: Leave it empty
      • Trigger: Select here Comments and Merge Request events

  • BitBucket

    1. Set up a new repository webhook on BitBucket. To do so head over to the page of your repository, and click on Webhooks. After that, click on Add webhook. 
    2. Fill the following information on the webhook Settings page and click on Save to save the Webhook:
      • URL: The Pull Request Webhook URL with your API key
      • Status: Active
      • Triggers: Select here Choose from a full list of triggers and select all the Pull Request events  
  • Microsoft Vsts

    1. Set up a new Service Hook for the repository. To do so head over to the page of your repository, and click on Service Hooks tab. After that, click on Create Subscription. 



    2. Select Webhook on the Service configuration wizard and follow it to create a new subscription for the Pull Request Webhook URL 
    3. Create Subscriptions for all the Pull Request Triggers: Pull Request createdPull Request updated and Pull Request merge commit created

How did we do?