# GitHub

### How to Send GitHub Commit Data to Hosted Graphite

To get GitHub commits flagged in Hosted Graphite follow these instructions:

* **Go to the Addons page, and in the Annotation Add-Ons section click on the GitHub card.**
* **Copy the webhook URL, including your API key.**

<figure><img src="/files/7UirBr9XO4vcY70bVXHt" alt=""><figcaption><p>Copy the webhook URL from the GitHub add-on page</p></figcaption></figure>

* **Browse to your GitHub repo, visit the ‘settings’ section, then ‘webhooks’**
* **Under ‘Webhooks’ click the “Add Webhook” button.**
* **Enter the URL in the box provided**
* **Select ‘application/json’ as the content type, and ‘send me everything’**

<figure><img src="/files/knSjgAxlNvonpA6qWjTI" alt=""><figcaption><p>Enter your webhook URL into the Github New Webhooks page</p></figcaption></figure>

* Hit `Save`

Your GitHub events will now be sent to the webhook URL and saved on your account as [Annotations](/api-guides/annotations-and-events-api.md). Use the following tags to search for the annotations you want to display:

* **Push Event Tags** – ‘github’, ‘push’, \<repo>, \<branch>, \<user>
* **PR Event Tags** – ‘github’, ‘pull-request’, \<action>, \<repo>, \<user>
* **Deploy Event Tags** – ‘github’, ‘deployment’, \<status>, \<repo>, \<user>, \<environment>

<figure><img src="/files/MqTT3U8jz488guvrrCsu" alt=""><figcaption><p>GH Annotations</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hostedgraphite.com/add-ons-and-integrations-guide/github.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
