User Guide

Connect GitHub

Overview#

The GitHub widget puts three numbers in the sidebar: unread notifications, pull requests waiting on your review, and open issues assigned to you. Each row links straight to the matching page on GitHub. It needs a WindoM account and a personal access token you create yourself.

1

Make sure you have a WindoM account and are signed in (Settings → Account tab).

2

Go to github.com/settings/tokens/new. The link preselects the two scopes WindoM needs - notifications and repo - so check they are ticked, set an expiry you are happy with, and click Generate token.

Copy the token straight away. It starts with ghp_ and GitHub shows it only once.

3

Open Settings → Apps → click the GitHub card. Paste the token into Personal Access Token and click Connect.

4

The counts appear in the sidebar and refresh on their own. Show GitHub in sidebar on the same card hides the widget without disconnecting.

Why the repo scope? The review-request and assigned-issue counts come from GitHub's search API, which only includes private repositories for a token that carries repo. On a classic token that scope also grants write access, which WindoM never uses - so treat the token like a password, and revoke it from your token settings if you stop using the widget.

What the GitHub widget does and does not do#

The widget shows three counts and nothing else: unread notifications, open pull requests waiting on your review, and open issues assigned to you. It does not show titles, repository names or contents, and it cannot be used to open, comment on or change anything from WindoM.

The scopes, and why both are needed#

WindoM uses a classic personal access token with two scopes:

  • notifications - lets WindoM count your unread notifications.
  • repo - needed so the review-request and assigned-issue searches include private repositories.

The repo scope is broad. On a classic token it covers read and write access to the repositories you can reach. WindoM only ever makes three read requests, but the token itself carries everything GitHub granted it, so keep it as secret as a password.

How it works and what is stored#

  • The token is sent to WindoM's server over HTTPS and stored encrypted at rest with AES-256-GCM, together with your GitHub username.
  • WindoM's server, not your browser, calls api.github.com with it and returns only the three numbers and your username to the extension.
  • Nothing about the notifications, pull requests or issues is stored: no titles, no repository names, no contents.
  • The counts are held in the server's memory for one minute to stay within GitHub's rate limits, and are never written to disk. The widget polls about once a minute.

Settings explained#

  • Personal Access Token - where you paste the token before clicking Connect.
  • Show GitHub in sidebar - hides or shows the widget. Hiding it does not disconnect or delete the stored token.
  • Disconnect - deletes the stored token from WindoM's database immediately.

Disconnecting and revoking#

  1. Open Settings → Apps → the GitHub card and click Disconnect.
  2. Also revoke the token on GitHub, at github.com/settings/tokens, so it stops working everywhere.
Choose a short expiry. When you create the token you pick its lifetime. A token that expires on its own limits the damage if it ever leaks. When it expires, create a new one and reconnect.

Deleting your WindoM account also deletes the stored token. See Create a WindoM Account.

Common questions#

Can I use a fine-grained token?#

The documented setup is a classic token with notifications and repo. Other token types are not covered here.

Does WindoM store my token in the browser?#

The token goes to WindoM's server and is stored there, encrypted. Because GitHub is called by the server, an account is required.

Can I run this without trusting the hosted server?#

Yes. WindoM is open source and you can run your own backend; see Run your own server.

Troubleshooting#

  • The token is rejected - WindoM treats a 401 or 403 from GitHub as an invalid token. Check that you copied all of it, that it has not expired or been revoked, and that both scopes are ticked. Generate a new one if in doubt.
  • The numbers look a little behind - counts are cached for one minute on the server.
  • Signed out right after signing in - fixed in version 1.5.1; check your version at chrome://extensions.

More fixes are on the Support page.

Back to the User Guide