# Gitea

The [Gitea](https://about.gitea.com/) integration allows you to preview live issue, pull request, and repository information from Gitea links in Outline documents. It also works with [Forgejo](https://forgejo.org/) instances, such as [Codeberg](https://codeberg.org/). For issues you can see the current status, author, timestamp, labels, and a preview of the description. For pull requests the status is also displayed, including whether it is a draft or merged. For repositories you can see the visibility, topics, and issue progress.

# Config

To set up the integration navigate to **Settings → Integrations → Gitea**. You must have an `admin` role to be able to see this screen. Click the “Connect” button and enter the details of your Gitea or Forgejo instance.

## Register an application

Before connecting, you must register an OAuth application in your Gitea or Forgejo instance:


1. In Gitea, navigate to **Settings → Applications** and find the “Manage OAuth2 Applications” section. Site administrators can also register an application for the whole instance under **Site Administration → Integrations → Applications**.
2. Enter a name for the application, for example “Outline”.
3. Enter the redirect URI. It is shown in the Outline connect dialog and uses the following format:
   * `<outlinedomain.com>/api/gitea.callback`
4. Keep the “Confidential client” option enabled.

When registration is complete you will be given a “Client ID” and “Client secret”. Enter these into the connect dialog in Outline, together with the URL of your instance, for example `https://gitea.example.com`.

You do not need to choose scopes in Gitea. Outline requests read-only access to your user, organizations, repositories, and issues.


## Connect multiple instances

If you have more than one Gitea or Forgejo instance, each can be connected in the same way by navigating to the settings page and clicking the “Connect” button that is now in the header. Each instance can be connected once. Connecting the same instance again replaces the connected account, and the existing connection keeps working until the new one is authorized.

# Usage

Once the integration is connected, paste an issue, pull request, or repository link from your Gitea or Forgejo instance into an Outline document and you will see the option to “mention” which displays detailed information inside the document.

---

**Documents**

- [Getting started](https://docs.getoutline.com/s/guide/doc/getting-started-CB6Ipl9Cdc)
- [Documents](https://docs.getoutline.com/s/guide/doc/documents-UiH1h0aQFQ)
- [Navigation](https://docs.getoutline.com/s/guide/doc/navigation-Rktdrrxz65)
- [Integrations](https://docs.getoutline.com/s/guide/doc/integrations-eUbAF2WAjF)
- [AI](https://docs.getoutline.com/s/guide/doc/ai-IFCYbrK7EU)
- [Administration](https://docs.getoutline.com/s/guide/doc/administration-GmaueCNdk1)
- [Import data](https://docs.getoutline.com/s/guide/doc/import-data-D2ZvLqz411)
- [Export data](https://docs.getoutline.com/s/guide/doc/export-data-Da6C7HqL8M)
- [Cloud hosting](https://docs.getoutline.com/s/guide/doc/cloud-hosting-CxJbubIhje)