# GitHub in your Mac’s menu bar

See what’s waiting for you on GitHub without opening a browser: pull requests to review, your own pull requests with their CI, your notifications, and whether each repository’s default branch is passing. A year of contributions sits underneath, and every repository opens a page of its own with its CI, its numbers, its recent workflow runs and Re-run failed jobs.

## 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.

| Request | Pages | When | What it supplies |
| --- | --- | --- | --- |
| `POST /graphql` | GitHub, Repository | Once a minute; contributions once an hour | Review 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. |
| `GET /notifications?per_page=50` | GitHub | Once a minute | Your unread notifications. |
| `GET /repos/{param.owner}/{param.repo}/actions/runs?per_page=10` | Repository | Every 2 minutes | The repository’s latest workflow runs. |
| `PUT /notifications` | GitHub | When you press Mark all read | Marks every notification read. |
| `POST /repos/{param.owner}/{param.repo}/actions/runs/{answer.failed_run_id}/rerun-failed-jobs` | Repository | When you press Re-run failed jobs | Runs the failed jobs of the newest run on the default branch again. |

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](https://legatobar.com/docs/sources.md) explains each part of a page.

## Set it up

1. **Make a token.** In GitHub, open Settings → Developer settings → Personal access tokens → Tokens (classic) and generate one with the `repo`, `notifications` and `read:user` scopes. Notifications need a classic token; fine-grained tokens can’t read them.
2. **Save it in Legato.** In Settings → Secrets, save it under `github`, bound to `api.github.com`. 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 two pages and run `/Applications/Legato.app/Contents/Helpers/legato set github-repo github-repo.json`, then `legato set github github.json`. Keep the ID `github-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

```prompt
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

- [Download GitHub (github.json)](https://legatobar.com/examples/github.json)
- [Download Repository (github-repo.json)](https://legatobar.com/examples/github-repo.json)

## 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.

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

## Verification

The pages were filled from a real GitHub account on 8 Nov 2026, and from public repositories for a busy repository page. The example pages have tests with made-up answers for a busy day. Illustrations use made-up repositories, people and numbers. See the [service index](https://legatobar.com/services/) for other examples.
