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

# Link AppSignal to your app's repository on GitHub

We will walk you through all the steps needed to integrate AppSignal with your GitHub Organization's repositories and link them to your AppSignal apps so that you can set up issue tracking.

## Adding Organization issue tracker integrations

Head over to your organization's [GitHub integration](https://appsignal.com/redirect-to/organization?to=admin/integrations/github) page. You can also get there from your application's Integrations page: if the GitHub row shows **Inactive**, select **Configure**.

Select **Install GitHub app**.

![The organization's GitHub integration page with the Install GitHub app button](https://mintcdn.com/appsignal-715f5a51/MrEEhTKieM14MKKE/assets/images/screenshots/application/integrations/github/link-repo/install.png?fit=max\&auto=format\&n=MrEEhTKieM14MKKE\&q=85\&s=7bb568ef3a1c050ce452e606bc76ab3e)

GitHub asks where to install AppSignal. Select **Configure** next to the organization or account that owns your application's source code.

![GitHub asking where to install AppSignal, listing a user account and an organization](https://mintcdn.com/appsignal-715f5a51/MrEEhTKieM14MKKE/assets/images/screenshots/application/integrations/github/link-repo/github-org.png?fit=max\&auto=format\&n=MrEEhTKieM14MKKE\&q=85\&s=42d21772103e8bdb9eee8bf2effdde92)

Under **Repository access**, choose **All repositories** or **Only select repositories** and confirm. GitHub labels the button **Install** for a new installation, or **Save** when you change an existing one. If you are not an owner of the GitHub organization, a label that reads **request** shows next to the repository name. Select **Save** or **Update access** to request the installation. An owner then has to approve it.

![The AppSignal app's permissions and repository access on GitHub](https://mintcdn.com/appsignal-715f5a51/MrEEhTKieM14MKKE/assets/images/screenshots/application/integrations/github/link-repo/github-repo.png?fit=max\&auto=format\&n=MrEEhTKieM14MKKE\&q=85\&s=8e8921d1008d16e8e41a98a02ca824b5)

GitHub sends you back to your organization's GitHub integration page in AppSignal. It confirms with **GitHub app installed. Please link a repository.** For each application, pick its repository in the **Linked repository** column. Then select **Save repository selection**. AppSignal confirms with **Updated repository selection for apps.**

![The organization's GitHub integration page with a linked repository per application](https://mintcdn.com/appsignal-715f5a51/MrEEhTKieM14MKKE/assets/images/screenshots/application/integrations/github/link-repo/link-repo.png?fit=max\&auto=format\&n=MrEEhTKieM14MKKE\&q=85\&s=a7a3a29b0b769cbaa511b7a5c6a2961c)

You are now done. Back on your application's [Integrations](https://appsignal.com/redirect-to/app?to=integrations) page, the GitHub row shows **Active** with the linked repository.

![The application's Integrations page with the GitHub row showing Active and the linked repository](https://mintcdn.com/appsignal-715f5a51/MrEEhTKieM14MKKE/assets/images/screenshots/application/integrations/github/link-repo/linked.png?fit=max\&auto=format\&n=MrEEhTKieM14MKKE\&q=85\&s=1bc683b95f3247c6111123fc51d972ef)

## Approve new permissions on GitHub

Drop a pull request link in an incident note, and AppSignal tracks it for you: the incident shows whether the fix is open, merged, or closed, without a trip to GitHub. To follow pull requests, the AppSignal GitHub app needs a few more permissions than it had before. GitHub keeps the current permissions in effect until an owner of the GitHub organization approves the new ones.

To approve the new permissions:

1. In your organization settings in AppSignal, go to **Integrations** > [**GitHub**](https://appsignal.com/redirect-to/organization?to=admin/integrations/github) and select **Configure this integration on GitHub**. GitHub opens the settings page of the AppSignal app installation. GitHub may first ask you to confirm access with a verification code.
2. Review the permissions listed under **Permissions** and select **Save**. Only an owner of the GitHub organization can approve them. If you are not an owner, send the page to someone who is.

   ![The AppSignal app's settings page on GitHub with its permissions and the Save button](https://mintcdn.com/appsignal-715f5a51/MrEEhTKieM14MKKE/assets/images/screenshots/application/integrations/github/permissions/github-permissions.png?fit=max\&auto=format\&n=MrEEhTKieM14MKKE\&q=85\&s=03e8b844e912f44d05edaae2345107b6)

GitHub notifies AppSignal as soon as an owner saves the new permissions.

### Permissions the AppSignal app requests

The AppSignal GitHub app asks for repository permissions only. It does not request organization or account permissions.

| Permission | Access | What AppSignal uses it for |
| - | - | - |
| Metadata | Read | Listing the repositories you can link. GitHub requires this for every app. |
| Issues | Read and write | Creating issues from incidents, and reading the status of linked issues and pull requests. |
| Pull requests | Read | Receiving updates when a linked pull request is closed, reopened, or merged. |
| Contents | Read | Finding the commits a deploy shipped, to show when a linked pull request is [deployed](https://docs.appsignal.com/application/integrations/github/create-github-issue.md#see-when-a-linked-pull-request-is-deployed). |
| Deployments | Read and write | Deployment information for the [GitHub sync features](https://docs.appsignal.com/labs.md) we are building. |

## Troubleshooting

If you already linked your GitHub organization with AppSignal but a repository is missing on the [organization's GitHub integration page](https://appsignal.com/redirect-to/organization?to=admin/integrations/github), select **Configure this integration on GitHub**.

![The organization's GitHub integration page with the Configure this integration on GitHub button](https://mintcdn.com/appsignal-715f5a51/MrEEhTKieM14MKKE/assets/images/screenshots/application/integrations/github/link-repo/reconfigure.png?fit=max\&auto=format\&n=MrEEhTKieM14MKKE\&q=85\&s=927f8ff33dae09fd227d02e1afb7a44c)

GitHub opens the AppSignal app's settings. Under **Repository access**, add the missing repository, or choose **All repositories**, and select **Save**.

![The AppSignal app's repository access on GitHub with the Save button](https://mintcdn.com/appsignal-715f5a51/MrEEhTKieM14MKKE/assets/images/screenshots/application/integrations/github/link-repo/select-repositories.png?fit=max\&auto=format\&n=MrEEhTKieM14MKKE\&q=85\&s=06f5b3f6fd196f075124dfe58bbd147e)

Back in AppSignal, the repository now appears in the **Linked repository** drop-down.

If anything went wrong while validating the integration you will be prompted with the error message.
Feel free to [contact us](mailto:support@appsignal.com) if you experience any problems while setting up this integration.

[github]: https://github.com


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