Viewing webhooks on GitHub can be a useful diagnostic tool when attempting to discover why perhaps a push to your repo has potentially not resulted in a job on CircleCI.
What is a webhook?
A webhook is what allows CircleCI to automatically take action every time you push a commit. GitHub will send us a packet of information about your project when a number of events occur, a "push" being the most popular.
How to find your webhooks
- Navigate to your repository's settings page.
- Select "Webhooks" in the left menu. (Alternatively, you can reach this page directly -> https://github.com/<ORG>/<REPO>/settings/hooks)
- You should now see a page similar to the following:
- From here, click on the CircleCI webhook URL, and scroll down to "Recent Deliveries".
- Click on any entry to view the delivery details. This will show the Headers and Payload of the webhook.
The X-GitHub-Delivery value (which is the same as the id you clicked on to open this delivery) is useful for tracking your webhook. Support can use this to do further investigation if needed.
In the Payload section under the SHA value, you can find the commit hash to ensure the webhook is referring to the correct commit.
You can also check the response back from CircleCI when GitHub sent the response. Switch from the "Request" tab to the "Response" tab. If you see a "200" response, your WebHook was delivered successfully.