Connecting GitHub to OneNotch
OneNotch connects to GitHub through the official GitHub CLI, so it stores no token. Install gh, sign in once, and your review queue appears. Steps, scope and limits.
On this page
OneNotch connects to GitHub through the official GitHub CLI, gh. Install it, sign in once with gh auth login, and OneNotch picks it up automatically: no token to paste, and nothing stored by OneNotch. Your pull requests waiting for review and your own open pull requests then appear on its GitHub screen, with check status and one-step approval.
Step 1: install the GitHub CLI
The quickest way on a Mac is Homebrew:
brew install gh
OneNotch finds gh wherever the common package managers put it: Homebrew on Apple silicon and Intel, MacPorts, Nix and the usual system paths. GitHub's own CLI documentation lists other ways to install it.
Step 2: sign in
gh auth login
Follow the prompts to sign in to GitHub.com, usually through your browser. When it's done, gh auth status shows you're signed in.
Step 3: open OneNotch's GitHub screen
Hover the notch (or press ⌃⌥N) and press G on Home, or click Reviews waiting. OneNotch notices gh without a restart. If it can't find it, the screen says "GitHub CLI not installed" with a Set up GitHub prompt.
What you get
- To review tab (1): open pull requests where your review is requested.
- Your PRs tab (2): open pull requests you authored.
- Up to 25 in each, from non-archived repositories.
- Each row: title, a "Draft" tag, repository and number, author, last update, a check summary like "12 checks · 1 failing", approval count, and "Changes requested" or "Approved" marks.
- Checks (C), open the changes (V), and approve (A twice) on the To review tab.
- Reviews waiting on Home, and a dot on the GitHub icon in the screen switcher when reviews are waiting.
See GitHub pull requests on Mac for a tour.
What OneNotch reads and does
| Reads | Does (only when you ask) |
|---|---|
| Open pull requests requesting your review | Approve a pull request (gh pr review --approve) |
| Open pull requests you authored | Open a pull request or its changes on GitHub |
| Check results on each pull request's latest commit | |
| Reviews and approvals |
It doesn't comment, request changes, merge, re-run checks or show issues. Those stay on GitHub.
A typical first day
Once gh is signed in, the GitHub screen fills on the next refresh. A sensible way to start:
- Open To review and see how long the queue is. Clear anything small with passing checks first.
- Switch to Your PRs (2) and check your own pull requests: any failing checks or requested changes?
- Glance at Reviews waiting on Home during the day instead of visiting GitHub to check.
For ideas on keeping the queue short, see how to see pull requests waiting for your review and how to review pull requests faster.
Why the CLI and not a token
Using gh means OneNotch never handles a GitHub token. The CLI manages your sign-in, OneNotch asks it for data, and you can sign out with gh auth logout at any time. OneNotch runs gh safely: by its full path, with arguments rather than a shell, prompts disabled and a timeout. Signing in to GitHub directly inside OneNotch is on the roadmap.
Turning it on or off
- Settings → Accounts → GitHub: Turn off / Turn on, and Refresh.
- Settings → General → Show GitHub pull requests: hides or shows the GitHub screen and Home's review count.
Changes apply immediately.
If something's missing
- Some repositories don't appear: if you signed
ghin with a fine-grained token, it only sees the repositories that token was granted. Organisations using SAML single sign-on may need the token authorised for them; OneNotch shows the rest with a note. - Nothing appears: check
gh auth statusin Terminal. - GitHub Enterprise Server: OneNotch queries
gh's default host; Enterprise Server isn't something it documents support for.
More in troubleshooting.
FAQs
Does OneNotch store my GitHub token?
No. It uses the GitHub CLI, which manages your sign-in.
How often does it refresh?
Every two minutes, and when you open the notch if the data is older than 30 seconds.
Can I use it with several GitHub accounts?
It uses whichever account gh is currently signed in to on its default host.
Is OneNotch affiliated with GitHub?
No. It's independent and not affiliated with or endorsed by GitHub.