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

# GitHub and GitLab sync: external PRs enter review

> Keep an external tracker in lockstep: issues sync in as work items, and outside contributors' PRs become review-work that closes itself when the PR does.

One webhook per repo, two independent streams. An owner or admin sets it up from
**Connectors → Sync**; everyone benefits.

GitHub

GitLab

| Stream | Default | What happens |
| - | - | - |
| **Sync issues** | on | Repo issues land in a Retasc project, labeled (default `support`). With a token, Retasc closes them back on `done` or `canceled`. |
| **Sync PRs/MRs** | off | Outside contributors' PRs become review items on a preset reviewer's lane. Merge promotes to `done`; close without merge cancels. Automatic, both ways. |

> [!NOTE]
>
> **Your own team's PRs are filtered out.** A PR on a tracked branch, referencing an
> issue id, or authored by a linked member is already tracked work. Only genuinely
> external PRs become items.

## Set up

**1. Connect a repo**

**Connectors → Sync → GitHub or GitLab → Connect a repo**, and pick the Retasc
project to sync into.

**2. Name the repo**

Type `owner/name`, or paste a token and use "Pick from my repos" for a verified
dropdown. GitLab: add an Instance URL if self-hosted.

**3. Choose streams**

Turning PRs on requires naming a reviewer: an active human member whose lane the
reviews dispatch to.

**4. Paste the webhook**

Retasc shows a Payload URL and secret **once**. Paste both into the repo's
Settings → Webhooks (a deep link opens the right page), ticking the events that
match your toggles.

**5. Verify**

GitHub pings automatically and the card flips to Connected. GitLab does not: click
**Test** in GitLab or touch a real issue or MR, or the card stays Pending forever.

![The GitHub connector in the Dash: the repo field, the webhook URL and its signing secret](https://mintcdn.com/retasc/j7UjBeNpjLsHiVcO/images/ui/connector-github-light.png?fit=max\&auto=format\&n=j7UjBeNpjLsHiVcO\&q=85\&s=03968a2c4ac0a8530e15a45e4187fb22)

![The GitHub connector in the Dash: the repo field, the webhook URL and its signing secret](https://mintcdn.com/retasc/j7UjBeNpjLsHiVcO/images/ui/connector-github-light-phone.png?fit=max\&auto=format\&n=j7UjBeNpjLsHiVcO\&q=85\&s=46c5425563748634fa439935e172636a)

![The GitHub connector in the Dash: the repo field, the webhook URL and its signing secret](https://mintcdn.com/retasc/j7UjBeNpjLsHiVcO/images/ui/connector-github-dark.png?fit=max\&auto=format\&n=j7UjBeNpjLsHiVcO\&q=85\&s=f380ce5b25fa321434e11844f315fd2f)

![The GitHub connector in the Dash: the repo field, the webhook URL and its signing secret](https://mintcdn.com/retasc/j7UjBeNpjLsHiVcO/images/ui/connector-github-dark-phone.png?fit=max\&auto=format\&n=j7UjBeNpjLsHiVcO\&q=85\&s=0c4602cfc3d425c4d6d3ceea814d224c)

> [!WARNING]
>
> **The secret is shown exactly once.** Lose it and you Disconnect and reconnect for a
> fresh one; there is no re-reveal.

## Manage

The **Connections** tab lists every connector with its status, project, and streams.
Owners edit sync settings, tokens, or Disconnect (syncing stops immediately). Agents
can read `list_connectors` and call `revoke_connector` over MCP, metadata only:
connecting a new repo is Dash-only, so a raw token never transits MCP.

## Next steps

> [card] [Review workflow](https://docs.retasc.com/review.md)
>
> What happens to a synced PR once it lands in review.

> [card] [Notifications](https://docs.retasc.com/notifications.md)
>
> A DM the moment a synced item lands on your lane.


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