צור Webhook של Roost

מדריך זה יסייע לך ביצירת Webhook באופן ידני במאגרים (Repositories) שלך ב-Git, כדי ש-Roost יוכל להאזין לאירועי Git שלך.  
בעוד של-Roost יש אפשרות ליצור Webhooks באופן אוטומטי אם מספקים לה אסימון גישה אישי (Personal Access Token) עם הרשאות מנהל למאגר, במידה שברצונך לספק גישה לקריאה בלבד – יהיה עליך ליצור את ה-Webhooks באופן ידני.

Webhook של GitHub



1. נווט למאגר ה-GitHub שלך.

2.לחץ על "Settings".

Screenshot 2023-04-11 at 1.40.47 PM.png

3. לחץ על "Webhooks".

Screenshot 2023-04-11 at 1.44.14 PM.png

4.לחץ על "Add webhook".
Screenshot 2023-04-11 at 1.45.13 PM.png

5. בכתובת ה-Payload הוסף:
https://<enterprise-dns>/api/application/client/git/events/add סוג התוכן כ־"application/json". 

6. לחץ על "Let me select individual events"

Screenshot 2023-04-11 at 1.48.37 PM.png


7. בחר "Pull Requests", "Pushes" ו-"Releases" בבחירת האירועים.
Screenshot 2023-04-11 at 1.50.26 PM.png

8. לחץ על "Add webhook".

Screenshot 2023-04-11 at 1.51.09 PM.png

Webhook של GitLab

1. נווט למאגר ה-GitLab שלך.

2. בסרגל הצד השמאלי לחץ על ‎Settings > Webhooks

image.png

 3. https://<enterprise-dns>/api/application/client/git/events/add בכתובת ה-URL הוסף:

image.png

4. גש לחלק ה-Trigger ובחר "Push events", "Merge Request Events" ו-"Release Events"

image.png

5. לחץ על "Add webhook"..

image.png

Webhook של Bitbucket Cloud

1. נווט למאגר ה-Bitbucket שלך.

2. בסרגל הצד השמאלי לחץ על "Repository Settings".
image.png
3. בסרגל הצד השמאלי לחץ על "Webhooks".
image.png
4.לחץ על "Add webhook".

image.png

5. בכותרת (Title) הוסף שם עבור ה-Webhook.

image.png

6.  https://<enterprise-dns>/api/application/client/git/events/add בכתובת ה-URL הוסף:

image.png

7. גש לחלק ה-Trigger ובחר "Created", "Updated", "Merged", "Declined" ו-"Push".

image.png

8. לחץ על "Save".

image.png

Webhook של Bitbucket Server

  1. נווט למאגר ה-Bitbucket Server שלך שהוספת בזרימת העבודה של Roost EaaS.
  2. לחץ על "Repository settings".

    Screenshot 2023-04-11 at 2.10.26 PM.png

  3. לחץ על "Webhooks".Screenshot 2023-04-11 at 2.11.29 PM.png
  4. לחץ על "Create webhook".
    Screenshot 2023-04-11 at 2.12.44 PM.png
  5. הזן שם כ־"roost-webhook", וכתובת URL כ־
    https://<enterprise-dns>/api/application/client/git/events/add.
    Screenshot 2023-04-11 at 2.18.41 PM.png

  6. בחר באירועי "Push" ובאירועי Pull Requests: "Opened", "Source branch updated", "Modified", "Merged", "Declined", "Deleted".

    Screenshot 2023-04-11 at 2.21.34 PM.png



  7. לחץ על "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