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

# GitHub

## Overview

GitHub tools let your agents work with GitHub issues and pull requests. Use them to build agents that file issues when needed, or that review PRs based on internal coding rules.

This document provides general information about our GitHub tools (available tools, setup and authentication) as well as two step-by-step guides covering the creation of:

* Issue creator agents
* PR reviewer agents

## Available Tools

### Issues

| Tool | Description |
| - | - |
| **Create Issue** | Create an issue in a repository, with optional assignees and labels. |
| **Update Issue** | Change an issue's title, body, labels, assignees, milestone, or state (close or reopen it). |
| **Get Issue** | Read an issue with its description, comments, and labels. |
| **List Issues** | List the issues of a repository, with optional filters. |
| **Comment on Issue** | Add a comment to an issue. |
| **Get Issue Custom Fields** | Read the custom fields set on an issue in one or all of its GitHub projects. |

### Pull requests

| Tool | Description |
| - | - |
| **Get Pull Request** | Read a pull request with its description, dates, diff, comments, and reviews. |
| **List Pull Requests** | List the pull requests of a repository, with optional filters. |
| **Create Pull Request Review** | Approve or request changes on a pull request, with optional inline comments. |

### Projects

| Tool | Description |
| - | - |
| **List Organization Projects** | List the open projects of an organization, with their single select fields (often used as columns). |
| **Add Issue to Project** | Add an issue to a project, optionally setting a field value. |

### Discussions

| Tool | Description |
| - | - |
| **List Discussion Categories** | List the discussion categories of a repository. |
| **List Discussions** | List the discussions of a repository, with optional filters. |
| **Get Discussion** | Read a discussion with its description, category, and comment count. |
| **Get Discussion Comments** | Read the comments of a discussion. |
| **Create Discussion** | Start a discussion in a category. |
| **Comment on Discussion** | Comment on a discussion, or reply to one of its comments. |

### Search

| Tool | Description |
| - | - |
| **Search Advanced** | Search issues and pull requests with GitHub's advanced search syntax, including AND/OR operators. |

## Workspace Setup and Authentication

See [Managing Tools](https://docs.dust.tt/docs/user-documentation/admins/tools-management/adding-an-mcp-server.md) for details on how to make GitHub tools available to your workspace. The setup will require authentication to GitHub by the admin. Through the OAuth flow, the admin will select which repositories will be accessible by this integration.

The admin will be able to select if the tool users *personal* or *workspace* credentials.

### Workspace Credentials

All actions taken by your agents will be attributed to the [dust-agent](https://github.com/apps/dust-agent) bot.

### Personal Credentials

All actions are taken as the user who invoked the agent.

The tool only has permissions that both the user and the Dust Github app have. If the Dust Github app is installed on a repository and the user has permissions for that repository, the tool is able to take action. If the Dust Github app is not installed or the user cannot access the repository, the tool is not able to take action.

## Adding GitHub Tools to agents

GitHub tools can be added to an agent by selecting them in the agent builder. They require no configuration. Note that they have access to the repositories that were selected by the administrator that set them up for the workspace.

In general you will want to mention in the instructions of your agents the repositories you want them to interact with. Example instructions:

```text theme={null}
Our repositories are the following:
- https://github.com/dust-tt/dust (main code repository, public)
- https://github.com/dust-tt/tasks (repository used for tasks tracking, private)

If not specified the default repository to consider is our main one https://github.com/dust-tt/dust
```


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