--- title: GitHub Connector description: 'Access knowledge from your Repositories' --- ## How it works The Github Connector picks up all of the Pull Requests in a repository including the Tile and Summary. - It will index both Open and Closed PRs. - Includes certain other metadata such as the PR's URL, creator, etc. ## Setting up ### Authorization 1. This Connector uses a GitHub Access Token. - [This guide](https://docs.github.com/en/enterprise-server@3.4/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) shows the following steps in detail. 2. Log in to GitHub. 3. In the upper right corner, expand your profile and click on **Settings** 4. On the bottom, go to **Developer settings** -> **Personal access tokens** -> **Tokens (classic)** 5. Click on **Generate new token** - Be sure to give the Token `repo` access so that it can access the PRs. - Set any expiration time. A new token will have to be provided to Danswer to continue updating the Danswer index once this one expires. ### Indexing 1. Navigate to the Admin Dashboard and select the **GitHub** Connector 2. For [https://github.com/danswer-ai/danswer](https://github.com/danswer-ai/danswer), it would look like: ![GithubConnector](/images/connectors/github/GithubConnector.png)