Code dashboard
The overview’s Code tab lists what is waiting on you across GitHub and GitLab: review requests, your open pull and merge requests, issues assigned to you, your inbox, and what you merged recently. It reads the GitHub and GitLab accounts linked under Settings › Accounts, and only while the tab is showing. The standalone Moonlab app (moonlab) is this same dashboard: it reads [code] from this file and shares the accounts.
[code]review_stale_days = 2stale_days = 7issue_stale_days = 14shipped_days = 7refresh_minutes = 5| Key | Type | Default | Description |
|---|---|---|---|
review_stale_days |
int | 2 |
Days before a review request is stale (1–365) |
stale_days |
int | 7 |
Days without activity before your own open change is stale (1–365) |
issue_stale_days |
int | 14 |
Days without activity before an assigned issue is stale (1–365) |
shipped_days |
int | 7 |
How far back Shipped reaches (1–90) |
refresh_minutes |
int | 5 |
Re-read interval while the tab is showing (1–120) |
Settings › Shell › Code Dashboard edits these; the sliders button on the tab opens it.
What the tab shows
Section titled “What the tab shows”- Tiles at the top count each list and the stale items; click one to filter, again to clear.
- Review requests, longest-waiting first; Your changes, those needing action (Conflicts, Changes requested, Checks failing) first; Assigned issues, stale first.
- Inbox: GitHub notifications and GitLab to-dos. The tick marks one read or done; the double tick marks all.
- Shipped: your merges within
shipped_days. - Rows open in your browser. With both forges linked, an account chip filters to one.
- Staleness counts from the last push, comment or review; the age turns amber at half the threshold.
GitLab
Section titled “GitLab”GitLab (gitlab.com or a self-managed instance) is linked with a personal access token:
- Under Settings › Accounts, enter the instance (default
gitlab.com). - Press Create a token. Your instance’s token page opens with the name Moonswing and the
read_apiscope filled in. - Pick an expiry, create the token, paste it in and press Connect. The shell checks the token before saving it.
- The instance, token and user name are stored in
~/.local/state/moonswing/gitlab-account(mode 0600), never inconfig.toml. Moonlab reads the same file, so GitLab is linked once for both. - Sign out deletes that file; the key button beside it opens the token page, where you revoke the token.
- An expired or revoked token signs the account out, with the reason on the card.
- Marking to-dos done needs the
apiscope; withread_apithe tab says so.
Private GitHub repositories
Section titled “Private GitHub repositories”The GitHub sign-in asks only for notifications by default, which leaves out private repositories. Add repo to scopes under [modules.github] and sign in again (see GitHub).