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

# GitHub

> Make your workspace's GitHub app, connect it to your repositories, and what removing it does.

Agents reach code through your workspace's own GitHub app. An owner or admin makes it once from Settings, an owner of the GitHub account installs it and picks the repositories, and then each agent's owner chooses which of those repositories the agent works on.

## Make the app

Only owners and admins make the app. Others see **An owner or admin makes the GitHub app.**

**1. Open Repositories**

Go to **Settings** → **Workspace** → **Repositories**.

**2. Choose where the app lives**

In **GitHub organization**, type your organization's name. Leave it empty to make the app on your own GitHub account. On an organization, you must be one of its owners.

**3. Create it**

Click **Create the GitHub app**. GitHub opens, makes the app and sends you back. Settings then shows **App made on** and the account's name, with **Open it on GitHub**.

## Connect it and pick repositories

**1. Connect GitHub**

Click **Connect GitHub**. GitHub opens so you can install the app and pick the repositories it may reach.

**2. Come back**

Settings shows **Connected to** and the account's name, and lists the repositories, marking the private ones.

Only an owner of the GitHub account the app is installed on can connect it: the account itself, or an owner of the organization. To add or remove repositories later, use **Change repositories on GitHub**.

> [!TIP]
>
> Protect each repository's default branch on GitHub with a branch rule that requires a pull request and blocks force pushes. Paraston does not guard the default branch itself.

## Give agents repositories

In an agent's form, **Repositories** lists the connected ones. The agent's owner picks them, and owners and admins can too. Each turn, the agent gets its repositories cloned where it works, with access to those repositories alone. See [Repositories](https://docs.paraston.com/agents/repositories.md).

## Events for routines

Routines can start on GitHub events, such as a pull request opened or checks that failed. Owners and admins see **GitHub events** in Settings, with each event either arriving or saying what the app still lacks. If it says **GitHub does not send events to this server yet**, click **Turn on GitHub events**. Anything else it lists is set in the app's settings on GitHub, under Permissions & events. See [Triggers](https://docs.paraston.com/routines/triggers.md).

## Disconnect or remove

* **Disconnecting GitHub** takes its repositories away from every agent. The app stays installed on GitHub, so you can connect again.
* **Remove the app** makes Paraston forget it and disconnects GitHub. Delete the app on GitHub too.

Either way, agents lose their repositories. A routine that starts on GitHub events and has none of its repositories left pauses itself, waits in **Needs you** and tells its owner once. It stays paused until one of its repositories is back.


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