Create Roost Webhook

This guide will assist you in creating a webhook manually on your Git repositories for Roost to listen to your Git events. While Roost can automatically generate webhooks if given a personal access token with admin permissions to the repository, if you wish to provide read-only access, you'll need to manually create the webhooks.

Github Webhook



1. Navigate to your Github repo.

2. Click "Settings".

Screenshot 2023-04-11 at 1.40.47 PM.png

3. Click "Webhooks".

Screenshot 2023-04-11 at 1.44.14 PM.png

4. Click "Add webhook"
Screenshot 2023-04-11 at 1.45.13 PM.png

5. In the payload URL add "https://<enterprise-dns>/api/application/client/git/events/add", Content type as "application/json".

6. Click the "let me select individual event"

Screenshot 2023-04-11 at 1.48.37 PM.png


7. Select "Pull Requests","Pushes" and "Releases" in the events selection.
Screenshot 2023-04-11 at 1.50.26 PM.png

8. Click "Add webhook".

Screenshot 2023-04-11 at 1.51.09 PM.png

Gitlab Webhook

1. Navigate to your Gitlab repo.

2. On left sidebar click on Settings > Webhooks.

image.png

 3. In the URL add "https://<enterprise-dns>/api/application/client/git/events/add".

image.png

4. Go to Trigger section and select "Push events", "Merge Request Events" and "Release Events"

image.png

5. Click "Add webhook".

image.png

Bitbucket Cloud Webhook

1. Navigate to your Bitbucket repo.

2. On left sidebar click on "Repository Settings".
image.png
3. On left sidebar click on "Webhooks".
image.png
4. Click "Add webhook".

image.png

5. In the Title add a name for the webhook.

image.png

6. In the URL add "https://<enterprise-dns>/api/application/client/git/events/add".

image.png

7. Go to Trigger section and select "Created", "Updated", "Merged", "Declined" and "Push".

image.png

8.Click "Save".

image.png

Bitbucket Server Webhook

  1. Navigate to your bitbucket server repo which you have added in the Roost EaaS workflow.
  2. Click "Repository settings".

    Screenshot 2023-04-11 at 2.10.26 PM.png

  3. Click "Webhooks".Screenshot 2023-04-11 at 2.11.29 PM.png
  4. Click "Create webhook".
    Screenshot 2023-04-11 at 2.12.44 PM.png
  5. Enter Name as "roost-webhook", URL as "https://<enterprise-dns>/api/application/client/git/events/add".
    Screenshot 2023-04-11 at 2.18.41 PM.png

  6. Select "Push" and Pull Requests events "Opened","Source branch updated","Modified","Merged","Declined","Deleted".

    Screenshot 2023-04-11 at 2.21.34 PM.png



  7. Click "Create".

    Screenshot 2023-04-11 at 2.22.23 PM.png

Azure Devops Webhook

1. Navigate to https://dev.azure.com/{organization_name}/{project_name}
2. Click on "Project settings" (at bottom left corner)
image.png

image.png

image.png

4. Click on the dropdown & select "Code pushed" 

image.png

image.png

5. Select specific repository and branch or select any and click on next

image.png

6. In the URL settings add "https://<enterprise-dns>/api/application/client/git/events/add"

image.png

image.png

7. Click on Finish 

image.png

8. Repeat the same process for "Pull request Created" & "Pull request Merged"

image.png