What you’ll see
GitHub
Reviews | My PRs | Notifications, three tabs at one height:
- Reviews: pull requests waiting for your review, with their repository and when they last changed.
- My PRs: your open pull requests, each saying what it’s waiting on: CI failing, Changes requested, Draft or Approved.
- Notifications: your unread notifications with their repository and why you got them (Review requested, Mention, Comment, Workflow…). Mark all read sits under the list.
Each shows 7, with Show N more.
When GitHub has more than the pages read (40 repositories, 20 pull requests of each kind, 50 notifications), a note under the tabs says so and links to GitHub.
Repositories: your repositories and your organisations’, most recently pushed first, as dots coloured by CI on the default branch. Red is failing, orange running, green passing, and grey has no CI. A dot that changes sends a notification. Review requests and notifications never count as a problem the page. Each dot opens its repository’s page.
Contributions: your past year, a day to a square, with the year’s total.
Repository
One page for every repository, opened from its dot and titled with its name.
- CI on main (or whichever default branch), with Re-run failed jobs in its corner while the newest run on that branch has failed. It asks first.
- Stars, open pull requests, open issues, the latest release, forks and the last push.
- The latest workflow runs and open pull requests, four of each with Show N more up to ten. Past ten, a note links to the rest on GitHub.
Status
- Watches CI on each repository’s default branch.
- Red when it’s failing, orange while it’s running.
- Grey for a repository with no CI, which never needs attention.
- Review requests and notifications never count as a problem.
- Notifies you when it turns orange or red.
How it connects
The pages read GitHub’s GraphQL API for pull requests, repositories, CI and the contribution calendar, and its REST API for notifications and workflow runs, with a classic personal access token.
Requests it makes on its own 3
- POST
/graphqlReview requests and your pull requests (GitHub’s search, which doesn’t use the REST search allowance), your repositories with CI on each default branch, the contribution calendar, and a repository’s counts, release and pull requests.
GitHub, RepositoryOnce a minute; contributions once an hour
- GET
/notifications?per_page=50 Your unread notifications.
GitHubOnce a minute
- GET
/repos/{param.owner}/{param.repo}/actions/runs?per_page=10 The repository’s latest workflow runs.
RepositoryEvery 2 minutes
Requests it makes when you act 2
- PUT
/notificationsMarks every notification read.
GitHubWhen you press Mark all read
- POST
/repos/{param.owner}/{param.repo}/actions/runs/{answer.failed_run_id}/rerun-failed-jobsRuns the failed jobs of the newest run on the default branch again.
RepositoryWhen you press Re-run failed jobs
That’s about 90 GraphQL points and 90 REST requests an hour with the overview and one repository page open, well inside GitHub’s 5,000 of each. A GraphQL answer can carry errors with a 200; the pages count it as a failed fetch only when it brings back none of what they need, so one repository GitHub can’t read doesn’t blank the rest.
Sources and buttons explains each part of a page.
Set it up
- Make a token. In GitHub, open Settings → Developer settings → Personal access tokens → Tokens (classic) and generate one with the
repo,notificationsandread:userscopes. Notifications need a classic token; fine-grained tokens can’t read them. - Save it in Legato. In Settings → Secrets, save it under
github, bound toapi.github.com. You can also link a 1Password reference. - Add the pages. Paste the prompt into your agent, or download the two pages and run
/Applications/Legato.app/Contents/Helpers/legato set github-repo github-repo.json, thenlegato set github github.json. Keep the IDgithub-repo: every dot opens it with its repository’s owner and name.
The cards fill within a minute. A missing or mistyped token is the usual reason they don’t: the page then notes that api.github.com didn’t answer.
For a GitHub Enterprise server, change url on every source to your server’s API address.
Prompt for your agent
Add 2 Legato pages for GitHub, starting from https://legatobar.com/examples/github.json, https://legatobar.com/examples/github-repo.json. Use the page IDs github, github-repo 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 pages as they are, keeping their page IDs. I’ll save my GitHub token as github in Settings → Secrets myself. Don’t press Mark all read or Re-run failed jobs to test them.
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
Why does a repository show grey?
Grey means its default branch has no CI: no GitHub Actions run and no other check reports on it. A grey repository never needs attention, so it doesn’t count as a problem.
When does Re-run failed jobs appear?
Only while the newest workflow run on the repository’s default branch has failed or timed out. It runs that run’s failed jobs again, after asking. GitHub allows a re-run for 30 days after the run. If GitHub turns it down, the button says why.
Why a classic token?
GitHub’s notifications API only accepts classic tokens. repo covers your private repositories and re-running a workflow, notifications the notifications, and read:user the private contributions in your calendar. Keep the token in Legato or 1Password only; delete it on GitHub’s token page to cut Legato off.
Can it show a repository I don’t push to?
The overview lists repositories you own, collaborate on or belong to an organisation that owns. Any public repository’s page opens with legato://page/github-repo?owner=…&repo=…, from a link on another page.
Why are the contributions blue?
Legato draws the year in your Mac’s accent colour, so it sits with the rest of the panel.