1 - Introduction to Repository Webhooks and Events
In this lab you will create and test webhooks and events
Duration: 5-10 minutes
References:
1.1 Add repository webhook
- Open a new browser window and go to: smee.io
- Create a new channel by clicking on the button
Start a new channel
- Copy the
Webhook Proxy URL
- Navigate to the
Settings > Webhooks
page of your own repository - Click on
Add webhook
- Paste the copied webhook proxy url into the field
Payload URL
- Change the
Content type
toapplication\json
- Select
Send me evertyhing
for the events to trigger this webhook - Click
Add webhook
- You should see a new webhook added to your repository
- Click on
Edit
button for the recently added webhook - Switch to
Recent Deliveries
tab to see the ping event generated with the webhook creation - Investigate the headers and the payload
- Navigate back to your webhook delivery channel created on step 2)
- (Optional) Create an issue, push code, open a pull request, add a label to see the triggered events and to investigate the payloads.