> For the complete documentation index, see [llms.txt](https://docs.selectstar.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.selectstar.com/integrations/dbt/dbt-docs-sync/github-dbt-docs-sync.md).

# Github dbt docs Sync

Connect your Github dbt repository directly in Select Star with the following steps

1. Using the Github Configuration UI available in the Apps section, add the Github repo details.

   <figure><img src="/files/J0fUU1cqnjXwl8xo6p0q" alt=""><figcaption></figcaption></figure>
2. To ensure Select Star can access your Github Repo, install the Github app on your repository.\
   \
   Github App: [Select Star dbt docs Sync](https://github.com/apps/select-star-dbt-docs-sync)\\

   **Github App Required Permissions**

   * **Read access to metadata:** This allows us to ensure we are syncing the descriptions to the updated models.
   * **Read and write access to code and pull request:** This allows us to create or delete a PR and verify that there are no conflicts when generating a PR.

<div data-full-width="true"><figure><img src="/files/Go937n331KezoXpHqqWg" alt=""><figcaption><p>Install the Github App on your Github Repo</p></figcaption></figure></div>

<figure><img src="/files/LkWIWSo7laPPTBIZqu3C" alt=""><figcaption><p>Github App: Select Star dbt docs Sync</p></figcaption></figure>

<figure><img src="/files/uVmtMXyKBGE8QA6bbPmd" alt=""><figcaption><p>Select the list of repositories</p></figcaption></figure>

3. Provide the following information

* Select Star Datasource - This dropdown will have a list of all your connected dbt Datasources
* Github URL - Provide the Github Repository URL
* Project Name - dbt Project name, as mentioned in the `dbt_project.yml` file, and
* Path Prefix - Information about the Root folder (if the dbt project is not in the root folder)

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

Once this is setup, you will see new PRs generated in your Github Repo.

<figure><img src="/files/F4zhnrCzrko729lm6mxW" alt=""><figcaption><p>Github PR</p></figcaption></figure>

You will also be able to see the list of all the PRs created by this feature in the Select Star UI.

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.selectstar.com/integrations/dbt/dbt-docs-sync/github-dbt-docs-sync.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
