> ## Documentation Index
> Fetch the complete documentation index at: https://docs.duvo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub

GitHub is a platform for hosting and collaborating on code repositories. Connecting GitHub to Duvo lets your agents read and manage repositories, issues, pull requests, and more using a Personal Access Token.

## Setup

**1. Confirm prerequisites**

> [!TIP]
>
> A GitHub account with access to the repositories your agent needs to work with.

> [!TIP]
>
> A Personal Access Token (PAT) generated from your GitHub account settings. Use a fine-grained token scoped to the specific repositories and permissions required.

> [!TIP]
>
> Need a token? Follow [GitHub's guide to creating a fine-grained personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token).

**2. Grant the required permissions**

The permissions your token needs depend on what the agent will do. Common scopes include:

* **Contents** — Read or write files and code in repositories.
* **Issues** — Read or manage issues and comments.
* **Pull requests** — Read or create pull requests and reviews.
* **Metadata** — Required for all fine-grained tokens; allows reading repository metadata.

> [!WARNING]
>
> Grant only the permissions the agent needs. Avoid using a classic token with broad `repo` scope if a fine-grained token with narrower access is sufficient.

**3. Add the connection in Duvo**

On the [Connections page](https://app.duvo.ai/integrations), open GitHub and fill in these fields:

**Personal Access Token** `string` *required*

A GitHub Personal Access Token with the permissions your agent needs. Generate one at **Settings → Developer settings → Personal access tokens** in your GitHub account.

> [accordion] Third-party documentation
>
> * [Creating a fine-grained personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token)
> * [Token permission scopes reference](https://docs.github.com/en/rest/authentication/permissions-required-for-fine-grained-personal-access-tokens)

## Capabilities

* **Read repository content** — Access files, directories, branches, and commit history across your repositories.
* **Manage issues** — Create, update, close, and search issues; add labels, assignees, and comments.
* **Work with pull requests** — Open, review, merge, and comment on pull requests.
* **Search code and repositories** — Find files, functions, or content across repositories using GitHub's search API.
* **Retrieve repository metadata** — Read repository details, contributors, topics, and settings.

## Key Benefits

* **Automate developer workflows** — Triage issues, generate release notes, or open pull requests as part of a repeatable agent.
* **Connect code to business processes** — Link repository activity to project management, reporting, and communication workflows.
* **Minimal setup** — A single Personal Access Token is all that is needed; OAuth app setup is not required, though organization policies may require admin approval.

## Works Well With

> [card] [Linear](https://docs.duvo.ai/user-guide/connections/available-connections/linear.md)
>
> Sync GitHub issues to a project management tool, or create GitHub issues automatically when new work items appear.

> [card] [Asana](https://docs.duvo.ai/user-guide/connections/available-connections/asana.md)
>
> Sync GitHub issues to a project management tool, or create GitHub issues automatically when new work items appear.

> [card] [Slack](https://docs.duvo.ai/user-guide/connections/available-connections/slack.md)
>
> Post pull request summaries or issue updates to team channels as part of a review or release workflow.

> [card] [Microsoft Teams](https://docs.duvo.ai/user-guide/connections/available-connections/microsoft-teams.md)
>
> Post pull request summaries or issue updates to team channels as part of a review or release workflow.

> [card] [Confluence](https://docs.duvo.ai/user-guide/connections/available-connections/confluence.md)
>
> Generate documentation or release notes from repository activity and publish them to your team wiki.

> [card] [Notion](https://docs.duvo.ai/user-guide/connections/available-connections/notion.md)
>
> Generate documentation or release notes from repository activity and publish them to your team wiki.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.