Ticket sources & repositories
Without a source of tickets there is nothing for Ouroboros to work on. This page covers connecting GitHub as a ticket source and choosing what it watches. It also covers keeping the source syncing, deciding what it may write back, and fixing it when it stops.
You manage sources on Settings › Sources (/settings/sources). Everyone in the
workspace can read the page. Only an Owner or a Maintainer can add, configure, test,
sync or pause a source. Anyone else sees each control switched off, with the reason.
What you can connect
GitHub is the only tracker this version of Ouroboros connects to — github.com, or a GitHub
Enterprise Server when OURO_GITHUB_API_BASE_URL points at it. Jira,
Linear and GitLab appear in the catalog marked coming soon and v2, and cannot
be chosen yet.
A GitHub source is one GitHub account (an organization or a user), up to 50 of its repositories, and a personal access token. Ouroboros reads from GitHub on a schedule; it does not receive webhooks from GitHub.
Two GitHub tokens
Ouroboros keeps two GitHub credentials, and they do different jobs:
| Credential | Set where | Used for |
|---|---|---|
| The source's token | The Personal access token field when you add or configure a source | Syncing that source's tickets, testing it, pushing tickets from Planning, and opening, syncing, reviewing and merging pull requests in its repositories |
| The workspace's backlog token | The Backlog token card on the same page — see Setting the backlog token | The Issues backlog: mirroring open issues from the repositories enabled for the workspace, so they can be sized and queued |
Storing a token on a source does not give the backlog a token. If the Issues page says Sync paused — no GitHub token is connected., set the backlog token as described below. Both tokens can be the same GitHub token, if it has the permissions both jobs need.
Connecting GitHub
- Choose + Add source. The Add a ticket source dialog lists the trackers.
- Choose GitHub. The form Connect a GitHub account opens.
- Fill it in:
- Name — how the source is listed, such as
GitHub · acme-labs. Each source in a workspace needs a different name. - GitHub account — the organization or user whose repositories to watch, as it appears in
a URL:
acme-labs, nothttps://github.com/acme-labs. - Repositories — one repository name per line, without the account:
lab-firmware, notacme-labs/lab-firmware. At least one, at most 50. - Personal access token — a fine-grained or classic GitHub token that can see those repositories. See Token permissions.
- Name — how the source is listed, such as
- Choose Add source.
The dialog confirms Source added and the new row appears, active and never synced. Adding the source also switches its repositories on: they appear under Settings › Repositories and in the workspace chip's Focus repository list straight away, and the Issues backlog starts scanning them once the backlog token is set — see Repositories. Choose Test connection on the row to check that GitHub accepts the token. Then choose Sync now to fetch its tickets, or wait for the next scheduled sync.
The token is sealed in the vault as soon as it is stored. Nobody can read it back: the row shows only a mask.
Token permissions
What the source's token needs depends on what you use. For a fine-grained token, grant access to the source's repositories with these repository permissions:
| You use | Permission |
|---|---|
| Syncing and testing the source | Issues: Read (and Metadata: Read, which GitHub always adds) |
| Pushing tickets from Planning | Issues: Read and write |
| Pull requests — opening, syncing, requesting reviews and commenting | Pull requests: Read and write |
| Merging pull requests | Contents: Read and write, as well as Pull requests |
A classic token needs the repo scope for private repositories, or public_repo for public ones.
Give the token the least it needs. A token that can read but not write still syncs; the first push or merge that needs more fails with permission denied.
Setting the backlog token
The Issues backlog reads open issues from every repository enabled for the workspace. An Owner or Maintainer turns a GitHub organization's repositories on or off in step 2 of sign-in. The backlog needs a token that can read issues on those repositories.
An Owner or Maintainer sets it on the Backlog token card, under the sources on Settings › Sources:
- Open Settings › Sources and find the Backlog token card. The Set the backlog token → link under the Issues page's banner, and Open settings on an empty Issues page, both land on it.
- Paste the token into GitHub token. What you type is hidden.
- Choose Save token. The card answers Saved. The backlog picks it up on its next sync. and
shows the token masked, such as
ghp_••••3456 · set 2026-10-14.
A token must start with github_pat_, ghp_, gho_, ghu_, ghs_ or ghr_, or be a
40-character hexadecimal classic token. Anything else is refused with That does not look like a
GitHub token. Paste the whole token, with no spaces. The token needs read access to issues on
every enabled repository: Issues: Read on a fine-grained token, or the repo scope on a
classic one for private repositories.
The token is set for the workspace you are in, and nobody can read it back: the card shows only the mask, the day it was set and, once it has been changed, the day it was last replaced.
- To replace it, paste a new token and choose Replace token. The new one takes over at the next sync.
- To remove it, choose Remove token, then Remove it. The card answers Removed. The Issues backlog is paused., and the Issues page says Sync paused — no GitHub token is connected. until another is saved. Keep it leaves the token where it is.
Other roles see the card without the form: The backlog token is set, replaced and removed by a workspace owner or admin.
The same three operations are on the REST API, at /api/v1/settings/github-token, for
automation: GET reads the masked state, PUT with {"token": "…"} stores one, and DELETE
removes it.
How sources sync
Every active source is synced on a schedule, every
OURO_BACKLOG_SYNC_INTERVAL_SECONDS seconds (five minutes unless your
deployment administrator changed it), give or take a quarter so that sources do not all call
GitHub at the same moment. The Issues backlog uses the same interval.
- The first sync of a source imports its open issues. Later syncs fetch only what changed.
- Sync now syncs one source straight away. It is refused while that source is already syncing, or if it synced moments ago — the row says how many seconds to wait.
- While a sync runs, the row reads syncing. Afterwards it reads synced 2m ago, with what the last sync did: last sync imported 3 · updated 1 · unchanged 40.
A sync that has more to fetch than one pass allows continues a second later, so a large first import finishes in several quick passes.
Configuring a source
Choose Configure on a row. The Configure source dialog has two parts:
- Settings — the account and repositories. Save settings replaces them all; the stored token is unchanged. A repository you add here is switched on, as when the source was added; one you take out stays as it was until you switch it off under Repositories.
- Credential — Store credential replaces the token. The old token is never shown, and the row's mask changes to the new one's.
The push from Planning writes to the first repository in the list, so put the repository you want new tickets in at the top.
Repositories
Settings › Repositories (/settings/repositories) lists every repository the
workspace works in, by GitHub account, in one place:
- The source that names it — or No source. Ouroboros only turns on a repository that a GitHub source names, so a repository with no source can be switched off but not back on until you add it to a source.
- Whether its issues are being scanned — Issues read 4m ago, Waiting for its first scan, Not scanned while off, or why scanning has stopped, such as Not scanned — no backlog token.
- Its switch. An Owner or a Maintainer turns a repository on or off. A repository that is off is left out of the Issues backlog, repository detection and the Focus repository list. Turning one on also starts repository detection for it.
The Issue scanning card at the top says whether the backlog is being scanned for the whole workspace, and warns when no backlog token is set. Scan issues now starts a pass over every repository that is on; anyone but a Viewer can use it.
Get started's repository switch and this page change the same setting.
Pausing a source
Choose Pause to stop a source syncing. It keeps its tickets and its settings, and its row reads paused. Sync now is refused while it is paused. Choose Resume to start it again.
Pausing is the way to stop a source you may want again. To take one out of the workspace for good, remove it.
Removing a source
An Owner or Maintainer chooses Remove on the source's row. Nothing is removed straight away: a dialog first counts what Ouroboros mirrored through the source, because all of it goes too:
- the source's tickets, estimates and dependencies included;
- its pull request records, gates, reviews and approvals included;
- the Planning draft batches targeting it.
Choose Remove source to go ahead, or Keep it to close the dialog and change nothing.
What stays: Nothing on the tracker is touched: the issues and pull requests themselves stay where they are. Runs that already happened keep their own record. The source's stored token is removed with it, and its repositories leave the Focus repository list in the workspace chip; if one of them was your focus, the chip goes back to All repos. They stay enabled; adding the source again puts them back in the list.
This cannot be undone. Adding the source again syncs its open tickets again, but the estimates and pull request records removed here do not come back. If you only want the source to stop syncing, pause it.
One thing keeps a source. If the Build Analyzer has drafted tickets into a batch that targets it, the dialog says This source cannot be removed: the Build Analyzer has drafted tickets into a batch that targets it, and that record is kept. Pause the source instead. and offers no Remove source.
A removal is recorded in the audit trail as removed the ticket source, with the source's name and who removed it.
When a sync fails
A source whose sync fails turns to error, and its row says why. Choose Test connection for the details: the test says what GitHub answered, without changing anything.
A source in error is not synced again until you act. Fixing the cause is not enough on its own. Do one of these:
- choose Resume,
- save new settings, or
- store a new credential.
The source then returns to active and is synced on the next cycle, or straight away with Sync now.
| The row says | What it means | What to do |
|---|---|---|
| credentials rejected | GitHub refused the token: it was revoked, it expired, or it is mistyped. the stored credential could not be opened means the vault cannot open the stored token at all. | Store a new token under Configure → Credential. |
| permission denied | GitHub accepted the token, but it may not do what was asked. | Widen the token's permissions, then store it again. |
| project or repository not found | The account or a repository does not exist, or the token cannot see it. GitHub answers the same for both. | Check the spelling under Configure → Settings and that the token has access to every repository listed. |
| rate limited | The token has used up its GitHub request allowance for the hour. The row says when it resets. | Wait, then choose Resume. Fewer repositories per token, or a longer sync interval, help. |
| tracker unavailable | GitHub did not answer, or answered with its own error. | Wait, then choose Resume. |
| tracker rejected the write | GitHub refused something Ouroboros tried to write. | Check the push or pull request that failed for the details. |
What can go wrong
- The Issues page says Sync paused — no GitHub token is connected. although a source has a token. The backlog uses its own token. See Setting the backlog token.
- Adding a source is refused with This workspace already has a source with that name. Give it a different Name.
- Adding a source is refused with Some settings do not satisfy the provider's schema — see
below. A field is malformed — usually a full URL in GitHub account, or
owner/repoin Repositories. The message under the field says which. - A row for a tracker other than GitHub, such as Jira, cannot be tested or synced. This build has no provider for that ticket source kind. Only GitHub can be connected in this version. Pause the source so it is not mistaken for a working one.
- Every control on the page is switched off. You are a Viewer. Sources are added, configured, tested, synced and paused by an owner or an admin.
- Tickets do not appear on the Issues page after a source syncs. The Issues backlog comes from the repositories enabled for the workspace, through the backlog token, not from the source. See Two GitHub tokens.
For how ticket sources are built, and how to write one for another tracker, see
TICKET_SOURCES.md.