# Gitea in your Mac’s menu bar

Keep up with your Gitea without opening it: the pull requests waiting for your review, your own with how their reviews and CI stand, the issues assigned to you and your notifications. Every repository you work in is a dot for CI on its default branch, and each opens a page of its own with its latest runs and a button to re-run the failed jobs. Legato reads your Gitea once a minute while your Mac is awake.

## What you’ll see

- **Gitea:**
  - **Health,** in Details: Gitea’s own check of its database and cache. It turns orange for a warning, and red when a check fails or Gitea stops answering.
  - **Reviews:** open pull requests that ask for your review, newest first, with their repository and how long ago they changed.
  - **My PRs:** your open pull requests, each with where it stands: CI failing, Changes requested, Draft, Approved, or its repository when none of those applies.
  - **Issues:** open issues assigned to you.
  - **Notifications:** your unread notifications, with whether each is an issue or a pull request, and **Mark all read** under the list.
  - **Repositories:** up to 24 repositories you own or belong to, most recently updated first, under their owner’s name. Each dot is CI on the default branch: green passing, red failing, orange pending, grey with no CI or nothing pushed yet. A dot opens that repository’s page.
  - **Contributions:** a year of your activity, a square per day, with the year’s total.
  - **Gitea:** the server’s version.
- **Repository:** what a dot opens.
  - **CI,** in Details: the checks on the default branch.
  - **Repository:** open pull requests and issues, the latest release, stars, forks and when it last changed.
  - **Workflow runs:** the latest four Actions runs, each named by its commit, with how it ended and on which branch. While the newest run on the default branch failed, the corner has **Re-run failed jobs**, which asks first.
  - **Open pull requests:** seven at once, most recently updated first.
- **Gitea server:** for the site admin, from its own template.
  - **Health,** in Details: the server and every Actions runner as a dot (up to 50), red while a runner is offline, grey for one you’ve disabled. With https, a runner’s dot opens it in Gitea’s admin pages.
  - **Actions:** jobs waiting for a runner and how long the oldest has waited, runners online, jobs running, and the version.
  - **Waiting for a runner:** the jobs waiting, oldest first.

### Status

- Gitea’s own check of its database and cache, in Details.
- Red once Gitea reports a failed check or stops answering, orange for a warning.
- The repository fleet’s dots show CI on each default branch, red while it fails.
- Review requests and notifications never count as a problem.
- Shows in Details and notifies you when it turns orange or red.

## How it connects

The pages read Gitea’s REST API at `/api/v1` with an access token, sent as `Authorization: Bearer`.

| Request | When | What it supplies |
| --- | --- | --- |
| `GET /api/healthz` | Every minute, with no sign-in | Gitea’s check of its database and cache. |
| `GET /api/v1/version` | Every hour | Gitea’s version. |
| `GET /api/v1/settings/api` | With the lists | Gitea’s page size, so a list cut short says so. |
| `GET /api/v1/repos/issues/search?type=pulls&review_requested=true` | Every minute | Pull requests waiting for your review. |
| `GET /api/v1/repos/issues/search?type=issues&assigned=true` | Every minute | Issues assigned to you. |
| `GET /api/v1/notifications` | Every minute | Your unread notifications. |
| `GET /api/v1/repos/issues/search?type=pulls&created=true`, then for each: `GET …/pulls/{n}/reviews`, `GET …/pulls/{n}` and `GET …/commits/{head}/status` | Every two minutes | Your pull requests, their reviews and the checks on their latest commit (up to 10). |
| `GET /api/v1/user`, `GET /api/v1/repos/search?uid=…`, then `GET …/commits/{branch}/status` for each | Every two minutes | Your repositories and CI on each default branch (up to 24). |
| `GET /api/v1/users/{you}/heatmap` | Every hour | Your contributions. |
| `PUT /api/v1/notifications` | When you press Mark all read | Marks your notifications read. |
| `GET /api/v1/repos/{owner}/{repo}`, `…/releases`, `…/pulls`, `…/commits/{branch}/status`, `…/actions/runs` | Every two minutes, while a repository’s page is open | Its facts, latest release, pull requests, CI and runs. |
| `POST …/actions/runs/{run}/rerun-failed-jobs` | When you press Re-run failed jobs | Runs that run’s failed jobs again. |
| `GET /api/v1/admin/actions/runners`, `GET /api/v1/admin/actions/jobs` | Every minute, on the server page | Runners and their state, jobs waiting and running. |

Gitea has no single query for all of this the way GitHub does, so each of your pull requests and repositories takes its own requests: up to 59 every two minutes for both, plus five a minute for the lists, Gitea’s page size and the health check, and the version once an hour. Gitea’s [API documentation](https://docs.gitea.com/api/) is also at `/api/swagger` on your own server.

**Which token.** In Gitea, a token’s permissions are read or write for each area. The pages need read for **repository**, **issue** and **user**, and **notification** with write so Mark all read works. Add write for **repository** if you want Re-run failed jobs. A read-only token works too: Mark all read and Re-run then show Gitea’s refusal. The server page needs a site admin’s token with read for **admin**.

[Sources and buttons](https://legatobar.com/docs/sources.md) explains each part of a page.

## Set it up

1. **Make a token.** In Gitea, open **Settings → Applications**, give the token a name, choose the permissions above, and press Generate Token. Gitea shows it only once.
2. **Save it in Legato.** In Settings → Secrets, save it under `gitea`, bound to your Gitea’s address. You can also link a [1Password reference](https://legatobar.com/docs/1password.md).
3. **Add the pages.** Paste the prompt into your agent, or download the pages and run `/Applications/Legato.app/Contents/Helpers/legato set gitea gitea.json`, then the same for `gitea-repo`.
4. **Point them at your Gitea.** Change `http://gitea.local:3000` to its address everywhere it appears on both pages: every source, the health card’s link and the notes’ links. If you reach it over https with a self-signed certificate, use its IP address or a `.local` name, which Legato can trust. A Gitea served under a path, such as `https://example.com/git`, needs that path as each source’s `base`, and in the links too.
5. **If you run the server,** add `gitea-server` the same way, with a site admin’s token saved as `gitea-admin`.

The lists fill within a minute. A mistyped token is the usual reason they don’t: the page then notes that Gitea refused it.

### Prompt for your agent

```prompt
Add 3 Legato pages for Gitea, starting from https://legatobar.com/examples/gitea.json, https://legatobar.com/examples/gitea-repo.json, https://legatobar.com/examples/gitea-server.json. Use the page IDs gitea, gitea-repo, gitea-server if they’re free: the pages link to each other by those IDs, so with any other ID, change the matching legato://page/ links.

Add the gitea and gitea-repo pages as they are. Replace http://gitea.local:3000 with my Gitea’s address everywhere it appears on both pages: every source’s url, the health card’s link and the notes’ links. I’ll save an access token as gitea in Settings → Secrets myself. Only if I say I’m the site admin, also add gitea-server with the same address; I’ll save a site admin’s token as gitea-admin myself.

Use the local Legato MCP tools or /Applications/Legato.app/Contents/Helpers/legato.
Use list_pages first and choose an unused page ID. Do not overwrite an existing page. If I explicitly ask to update one, read its full body with get_page, preserve unrelated cards and settings, and use if_match with that version. On version_mismatch, read again before merging.
Ask me only for non-secret setup details that are missing. Never ask me to paste a password, token or API key into chat, page JSON or command arguments. Tell me to save it in Settings → Secrets for the service host, or link it from 1Password there.
Use the downloadable page, not the illustration’s sample data. Never invent readings. Fix any invalid_page paths and verify that the page loads. Do not press buttons that change the service or real devices to test it.
```

### Download the pages

- [Download Gitea (gitea.json)](https://legatobar.com/examples/gitea.json)
- [Download Repository (gitea-repo.json)](https://legatobar.com/examples/gitea-repo.json)
- [Download Gitea server (gitea-server.json)](https://legatobar.com/examples/gitea-server.json)

## Questions

### Which repositories are in the fleet?

The ones you own or belong to, through an organisation or as a collaborator, leaving out archived ones. The 24 most recently updated show, and the card’s title says so when there are more.

### What does a grey dot mean?

That the default branch has no checks at all (no Actions workflow and nothing else reporting a status), or that nothing has been pushed yet. A dot that says CI not read is one Legato couldn’t ask about, usually because the default branch’s name has a slash in it, such as `release/2026`. On that repository’s page, CI says the same and Re-run failed jobs isn’t offered; the runs and everything else still show.

### Why don’t notifications say why I got them?

Gitea’s API doesn’t send a reason. It says only whether a notification is about an issue or a pull request, and whether that’s closed or merged.

### How is “Approved” worked out?

From each reviewer’s latest review, whether or not they’re an official reviewer. Changes requested by anyone comes first; otherwise one approval of the latest commit is enough to say Approved (an approval of an older commit doesn’t count). It doesn’t say whether branch protection’s required approvals are met. A pull request with 50 or more reviews shows its repository instead, since Legato reads one page of them.

### What about older Gitea, or Forgejo?

The pages need Gitea 1.26 or later, for workflow runs and Re-run failed jobs. Forgejo started from Gitea but its API has moved on since; these pages haven’t been checked against it.

Legato is independent and isn’t affiliated with or endorsed by Gitea.

## Verification

The pages were checked against Gitea 28.4.0 on 18 Nov 2026, on a self-hosted server with made-up users, an organisation, seven repositories, Actions runs passing, failing and running, reviews in each state, issues and notifications. Re-run failed jobs and Mark all read were pressed against it, and the server page was checked with a runner offline and a job waiting. Gitea 1.26 and 1.27 weren’t run: the pages follow those versions’ published API descriptions. Illustrations use made-up repositories, users and numbers. See the [service index](https://legatobar.com/services/) for other examples.
