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

# GitHub

> Pull requests, code review, and automated workflows.

<Frame>
  <img src="https://mintcdn.com/test-8862363a/ZNDzs01gTiL6UMVz/images/integrations/github.png?fit=max&auto=format&n=ZNDzs01gTiL6UMVz&q=85&s=030cda9e1197e6d76306f1a4faf5cb15" alt="GitHub" width="2560" height="1440" data-path="images/integrations/github.png" />
</Frame>

## Features

* Open pull requests with code changes
* Review PRs with inline comments
* Respond to PR feedback and iterate
* Start work from GitHub issues
* Auto-fix failed GitHub Actions workflows
* Signed and verified commits on all Tembo PRs

## Installation

<Steps>
  <Step title="Install">
    Go to [Integrations](https://app.tembo.io/integrations) and click **Install** next to GitHub.
  </Step>

  <Step title="Authorize">
    Choose **All repositories** or **Selected repositories** and authorize.
  </Step>

  <Step title="Activate">
    Select which repositories Tembo should work with under "Active Repositories".
  </Step>
</Steps>

## Usage

### PR comments

Comment `@tembo` on any pull request to request changes. Works in the main thread or as inline review comments on specific lines. Tembo reads the feedback, updates the code, and pushes new commits.

```
@tembo Please add error handling to this function
```

Works on PRs created by Tembo and PRs created by your team.

### Issues

Comment `@tembo` on any issue to start implementation. Tembo reads the issue title and description, then opens a PR.

```
@tembo Implement the API endpoint described in this issue
```

## Agents

See [Agents](/features/agents#event-driven) for available GitHub event triggers.

### PR reviews

Reviews pull requests for bugs, security issues, and code quality. Leaves inline comments automatically when a PR is opened.

### Enrich issues

Adds codebase context to new GitHub issues, helping agents and teammates understand the relevant code before starting work.

### Failed workflows

Detects GitHub Actions failures and opens fix PRs automatically.

## Advanced

<AccordionGroup>
  <Accordion title="Attribution">
    By default, PRs and commits are made under the Tembo bot account. To attribute them to your GitHub user instead, connect your personal GitHub account in your [Tembo user settings](https://app.tembo.io/settings).
  </Accordion>

  <Accordion title="Signed commits">
    All commits in Tembo PRs are automatically signed and verified with a "Verified" badge in GitHub.
    No configuration needed.
  </Accordion>

  <Accordion title="Merge or close actions">
    Tembo can merge or close a pull request through GitHub tool calls. If a merge or close action is requested while another Tembo job is already running on that pull request, the agent rejects the request. Wait for the active job to finish, then try again.
  </Accordion>

  <Accordion title="Repositories not appearing">
    Wait 2-5 minutes for initial sync. If they still don't show, click the sync button on the GitHub
    integration card. Check that you granted Tembo access during installation and that you have
    permission to install GitHub Apps for your organization.
  </Accordion>

  <Accordion title="@tembo not responding">
    Make sure you're using `@tembo` (lowercase) and that the repository is activated in Integrations.
  </Accordion>

  <Accordion title="PRs not being created">
    Check that the repository is activated and there isn't already an open PR for the same issue.
  </Accordion>
</AccordionGroup>
