GitLab Activities Importer
pendingby Anindya Sundar Paul
Imports GitLab daily activities into the active daily note.
Obsidian GitLab Activities Importer
Import your GitLab activities into the active daily note using the GitLab REST API.
Features
- Command: Import GitLab activities into current daily note
- Imports events for the note's day (local timezone day based on note filename)
- Supports GitLab.com and self-managed GitLab instances
- Replaces one dedicated section in the note each run (idempotent)
- Includes push metadata such as branch, commit count, and latest commit title when present
Requirements
- Daily note file name must contain a date in either
YYYY-MM-DDorYYYYMMDD - A GitLab personal access token (minimum scope:
read_user)
Setup
-
Install dependencies:
npm install -
Build the plugin:
npm run build -
In Obsidian, open Settings → Community plugins → Obsidian GitLab Activities Importer.
-
Configure:
- GitLab base URL (for example
https://gitlab.com) - Personal access token with at
read_userandread_apipermissions. - Optional output heading and pagination limits
- GitLab base URL (for example
Usage
- Open a daily note for the date you want to import.
- Run command palette action: Import GitLab activities into current daily note.
- The plugin writes results under the configured heading (default:
## GitLab activities).
Development
-
Watch mode:
npm run dev -
Lint:
npm run lint
Notes
- The GitLab events API can omit or truncate push details for some events.
- This plugin only requests data from your configured GitLab host when the import command is run.
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.