obgitwork
unlistedby cheng
View GitHub and GitLab issues and merge/pull requests in a multi-dimensional table, using your local gh / glab logins or direct API access.
obgitwork
English | 简体中文
View all your GitHub and GitLab issues and pull/merge requests in a single table inside Obsidian.
Track work across personal projects, company repositories, and self-hosted instances without leaving your vault. Everything stays read-only—you can browse, filter, and read discussions safely without worrying about accidental edits.
Why obgitwork?
- Everything in one table: Combine issues and PRs/MRs from GitHub, GitLab, self-hosted instances, and other compatible platforms into a single board.
- Read inside Obsidian: Click any row to read the full description and comments in a modal styled with your vault's theme and fonts—including images from private repositories.
- Instant & offline-ready: Opening the board shows your last synced data immediately, even offline. Smoothly scrolls through 10,000+ items.
- Safe by design: Strictly read-only. The plugin never comments on, closes, or merges anything on your Git platforms.
Quick Start
1. Install the plugin
- Download
obgitwork-vX.Y.Z.zipfrom the latest Release and unzip it. You get a folder namedobgitworkcontainingmain.js,manifest.jsonandstyles.css. - Put that folder into
<your vault>/.obsidian/plugins/, so the path is<your vault>/.obsidian/plugins/obgitwork/. The.obsidianfolder is hidden: on macOS pressCmd+Shift+.in Finder; on Windows enable "Hidden items" in File Explorer. - Restart Obsidian (or reload plugins), go to Settings → Community plugins, turn off Restricted mode if needed, and enable obgitwork.
Upgrading: Replace the
obgitworkfolder with the one from the new zip and re-enable the plugin. Your local cache, views, and settings are preserved.
2. Connect your accounts
Go to Settings → obgitwork → Accounts:
- Already signed in to
ghorglab? Your existing terminal logins are detected automatically—no extra setup needed. - Want to add another account? Click Add account:
- CLI account (GitHub / GitLab): Copy the generated login command into your terminal, sign in, and click Check login. Each added account is isolated and won't affect your terminal's default login.
- API account (Gitea, Forgejo, or any GitHub/GitLab-compatible host): Enter the site domain and a personal access token.
3. Add repositories
Go to Settings → obgitwork → Repositories:
- Type a keyword in the search box to search across all your accounts at once (toggle between Mine and All), then click a result to add it.
- Or paste a repository URL / type
owner/repo(group/sub/projectfor GitLab) directly.
4. Open the board
Click the table icon in the left ribbon, or open the command palette and run Open Git board.
What You Can Do
Organize your views
- Filter by type (Issue / PR / MR), state (Open / Draft / Merged / Closed), CI status, repository, author, assignee, labels, milestone, or title keyword.
- Group & sort: Sort by any column, or group items by type, state, repository, author, or milestone with collapsible sections and item counts.
- Customize columns: Show or hide columns, and drag column headers to reorder them.
- Save multiple views: Create separate views (e.g., Assigned to me, Pending review, Failing CI). Each view remembers its own filters, grouping, sorting, and column layout.
Inspect details & jump to source
- Click a row: Open the full description and comments right inside Obsidian.
- Click the
#number: Copy a link to the issue or PR/MR. - Cmd/Ctrl + click a row: Open the item directly in your browser.
Sync on your terms
- Manual or auto-sync: Refresh only when you click Sync, or set an auto-sync interval in Settings → General.
- Fast incremental updates: Only items updated since the last sync are fetched, and each repository updates on the board as soon as it finishes loading.
- Pause accounts anytime: Disable an account in settings to temporarily hide its repositories and stop syncing them.
Language support
Available in English, Simplified Chinese, Traditional Chinese, Japanese, German, and Korean. Follows your Obsidian language by default, or can be set manually in Settings → General.
Privacy & Credentials
- Strictly read-only: Only fetches data. No write permissions are used.
- CLI accounts: Credentials stay managed by
gh/glabon your machine; the plugin never stores them. (Note: deleting an added CLI account in the plugin will also log out that isolated CLI session after confirmation.) - API accounts: Personal access tokens are stored locally in the plugin's data folder inside your vault.
Known Limitations
- Desktop only: Runs local CLI tools and accesses local storage, so mobile is not supported.
- Read-only: Creating, commenting on, closing, or merging items must be done in the browser.
- API account CI status: CI status indicators are currently available for CLI accounts only.
- Deleted or transferred items: Incremental sync only fetches updated items and won't automatically remove items deleted or transferred on the remote platform.
For Developers & Contributors
Build & test
npm ci
npm test # unit tests (vitest)
npm run check # type check only
npm run build # type check + production build into dist/
npm run dev # watch build
OBGIT_E2E=1 npx vitest run tests/real.e2e.test.ts # real CLI end-to-end (needs local logins; set OBGIT_E2E_GITLAB_HOST for self-managed GitLab)
To build from source for your vault, run npm ci && npm run build and copy main.js, manifest.json, and styles.css from dist/ into <your vault>/.obsidian/plugins/obgitwork/.
Project layout
| Directory | Contents |
|---|---|
src/providers/ | Data layer: gh / glab CLI and direct API access, accounts, item details |
src/board/ | Board UI: views, rendering, column dragging, detail modal, local cache |
src/settings/ | Settings tab and settings model |
src/i18n/ | Localization: locale switching and per-module message catalogs |
tests/ | Unit tests; tests/fixtures/ holds sample gh / glab output |
harness/ | Standalone board preview page using mock data (no Obsidian required) |
scripts/ | Version sync, version check, and release notes generation |
To preview the board UI outside Obsidian, run npm run build, serve the repository root with any static server, and open /harness/board.html.
Translations
Each module has its own catalog in src/i18n/ (common.ts, board.ts, settings.ts, providers.ts). English is the source of truth; the type checker fails if another language misses a key. To add a language, add it to LOCALES in src/i18n/index.ts and to every catalog.
Releasing
npm version 0.2.0updatespackage.json,manifest.json, andversions.json, and creates the tagv0.2.0. Release tags must have thevprefix; the release workflow rejects any other tag.git push && git push --tags. GitHub Actions runs tests and builds, generates release notes grouped by area with a contributor list, and publishes the release right away. Its only asset isobgitwork-v0.2.0.zip. If any step fails, nothing is published.
License
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.