GitHub
The GitHub mark with your unread notification count. Click for the inbox: each thread with the reason it arrived. Click a thread to open it in the browser (and mark it read); the tick on a row marks it read; the double tick in the header marks all read. Not in the default layout.
[modules.github]refresh_seconds = 60show_count = trueparticipating_only = falseinclude_read = falsemark_read_on_open = true| Key | Type | Default | Description |
|---|---|---|---|
refresh_seconds |
int | 60 |
Poll interval (60–3600); GitHub may ask for longer |
show_count |
bool | true |
Show the unread count |
participating_only |
bool | false |
Only threads you’re mentioned in, assigned or asked to review |
include_read |
bool | false |
Keep threads listed after they’re read |
mark_read_on_open |
bool | true |
Mark a thread read when you open it |
client_id |
string | GitHub CLI’s | OAuth app used for sign-in — see below |
scopes |
string | "notifications" |
Space-separated scopes the sign-in requests |
To add it, put "github" in a panel’s layout. Nothing is polled while no bar or overview tab needs it. An unchanged list costs no rate-limit quota.
Signing in
Section titled “Signing in”Sign in under Settings › Accounts › GitHub (the module’s popup links there when signed out). The shell uses GitHub’s device flow: it shows a code, opens github.com/login/device, and you enter the code there. The shell never sees your password. The same account is used by the todo board’s issue/PR links, the overview’s Code tab and the Moonlab app — signing in or out in any of them does it in all.
- The token is stored in
~/.local/state/moonswing/github-token(mode 0600), not inconfig.toml. - Sign out deletes it from this machine but doesn’t revoke access; the key button beside it opens github.com/settings/applications to do that.
- Copying the code needs
wl-copy(packagewl-clipboard); without it, type the code by hand. - The consent screen says GitHub CLI because that is the default
client_id. To use your own OAuth app, register one with Enable Device Flow ticked and setclient_id = "Iv1.0123456789abcdef". - The default
notificationsscope doesn’t cover private repositories. For those (and private-repo link titles on the todo board), setscopes = "notifications repo"— this grants full repository access. - After changing
client_idorscopes, sign out and in again.