GitLab
Preview projects, merge requests, issues, commits, and project lists.
Set up
-
Create an OAuth application in GitLab, owned by a user or group on the GitLab instance you want to connect.
-
Add this redirect URI and select the
read_apiandread_userscopes:https://docmost.example.com/api/integrations/oauth/gitlab/callbackReplace
https://docmost.example.comwith your Docmost URL (APP_URL). -
Copy the application ID and secret. Set these on the Docmost server:
INTEGRATION_GITLAB_CLIENT_ID=<application-id>
INTEGRATION_GITLAB_CLIENT_SECRET=<application-secret>
# Only for GitLab self-managed:
INTEGRATION_GITLAB_URL=https://gitlab.example.comSetting
INTEGRATION_GITLAB_URLreplaces GitLab.com support with your self-managed instance. -
Set
APP_URLto your Docmost base address, without a path, and restart Docmost.
Connect your account
Open Settings > Account > Connections, choose Connect beside GitLab, and sign in.
Supported links
| Link | Example |
|---|---|
| Project | https://gitlab.com/example-group/docs |
| Merge request | https://gitlab.com/example-group/docs/-/merge_requests/42 |
| Issue or work item | https://gitlab.com/example-group/docs/-/issues/12, https://gitlab.com/example-group/docs/-/work_items/12 |
| Commit | https://gitlab.com/example-group/docs/-/commit/a1b2c3d |
| Commit in a merge request | https://gitlab.com/example-group/docs/-/merge_requests/42/diffs?commit_id=a1b2c3d |
| Issues or merge requests list | https://gitlab.com/example-group/docs/-/issues, https://gitlab.com/example-group/docs/-/merge_requests |
Links copied from an open work item drawer are also recognized when they include GitLab's ?show= value.