# Github

You can connect Tability to Github to automatically pull metrics from Github for your check-ins without having to switch context.

Once you add Github as a data source for an outcome/Key Result, Tability can:

* Automatically pull the most recent value of the metric when you open the check-in form.
* Perform automatic sync while the plan is active (Premium subscription only).

### How to enable the integration

**Step 1. Upgrade to the Plus or Premium subscription**

You'll need to have a *Plus subscription* to use Gitlab as a data source.

You'll need to have a *Premium subscription* to enable the auto-sync.

**Step 2. Connect Tability to your Gitlab account**

Go to the Integrations admin screen, and look for the Gitlab integration in the "Data connectors" section, click on "Connect to Gitlhub" and complete the steps to connect Tability to your Gitlab account.

<figure><img src="/files/QKTBZlD7crQLE3wJzfBC" alt=""><figcaption></figcaption></figure>

## How to add a data source to an outcome of Key Result

Once Github is connected, you will be able to use it as a data source for your outcomes/KRs.

**Step 1. Open up your edit panel of your outcome/KR**

![](https://d33v4339jhl8k0.cloudfront.net/docs/assets/60b049fe9c887a0dfc554454/images/6466508cc6234261f380e3e6/file-bZLSr0JQOb.png)

Click on "Edit" to open up the Edit panel of any outcome/KR in your workspace.

**Step 2. Select Github as a data source**

<figure><img src="/files/avePPAO2OQ40iMjcqaaE" alt=""><figcaption></figcaption></figure>

Go to the "Data source" tab and select Github.

**Step 3. Pick the metric that you would like to connect**

<figure><img src="/files/2YEG8pVLSOPpfHSvdSqS" alt=""><figcaption></figcaption></figure>

Use the dropdown to select the metric that you want to connect to your outcome/KR.

**Step 4. Select your Github repo**

<figure><img src="/files/XYh0CP1jlFPYRIzrMlap" alt=""><figcaption></figcaption></figure>

Add the owners and repository that you're looking to connect to

**Step 5. Save your connection**

Click on "Save & preview" to complete the connection.

Tability will retrieve the current value for that metric and your screen should look like this 👇

<figure><img src="/files/Dho20y2KHC1SEbihLBS9" alt=""><figcaption></figcaption></figure>

You can now toggle the option to *Enable auto-sync* of your metric if you're on a Premium subscription.

Tability will retrieve the value of your metric from Github every 48h and will create a check-in on behalf of the owner of the outcome/KR.

The first data sync should happen within 1h of enabling this option.

### How to use the data source in your check-ins

<figure><img src="/files/xrNoeZPrwPi0u7QQ8f6J" alt=""><figcaption></figcaption></figure>

It's all automatic! Once an outcome/KR is connected to a data source, Tability will automatically pull the current value whenever you open up the check-in modal.


---

# 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://guides.tability.io/docs/become-a-tability-power-user/integrations/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.
