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.
Requests it makes on its own 11
- GET
/api/healthzGitea’s check of its database and cache.
Every minute, with no sign-in
- GET
/api/v1/versionGitea’s version.
Every hour
- GET
/api/v1/settings/apiGitea’s page size, so a list cut short says so.
With the lists
- GET
/api/v1/repos/issues/search?type=pulls &review_requested=true Pull requests waiting for your review.
Every minute
- GET
/api/v1/repos/issues/search?type=issues &assigned=true Issues assigned to you.
Every minute
- GET
/api/v1/notificationsYour unread notifications.
Every minute
GET /api/v1/repos/issues/search?type=pulls&created=true, then for each:GET …/pulls/{n}/reviews,GET …/pulls/{n}andGET …/commits/{head}/statusYour pull requests, their reviews and the checks on their latest commit (up to 10).
Every two minutes
GET /api/v1/user,GET /api/v1/repos/search?uid=…, thenGET …/commits/{branch}/statusfor eachYour repositories and CI on each default branch (up to 24).
Every two minutes
- GET
/api/v1/users/{you}/heatmapYour contributions.
Every hour
GET /api/v1/repos/{owner}/{repo},…/releases,…/pulls,…/commits/{branch}/status,…/actions/runsIts facts, latest release, pull requests, CI and runs.
Every two minutes, while a repository’s page is open
GET /api/v1/admin/actions/runners,GET /api/v1/admin/actions/jobsRunners and their state, jobs waiting and running.
Every minute, on the server page
Requests it makes when you act 2
- PUT
/api/v1/notificationsMarks your notifications read.
When you press Mark all read
- POST
…/actions/runs/{run}/rerun-failed-jobsRuns that run’s failed jobs again.
When you press Re-run failed jobs
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 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 explains each part of a page.
Set it up
- 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.
- Save it in Legato. In Settings → Secrets, save it under
gitea, bound to your Gitea’s address. You can also link a 1Password reference. - 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 forgitea-repo. - Point them at your Gitea. Change
http://gitea.local:3000to 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.localname, which Legato can trust. A Gitea served under a path, such ashttps://example.com/git, needs that path as each source’sbase, and in the links too. - If you run the server, add
gitea-serverthe same way, with a site admin’s token saved asgitea-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
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
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.