π¦ GitLab (team feature)
Connecting GitLab has two directions:- Outbound (Nota β GitLab) β Nota reads merge requests, posts comments, and files issues. Needs an access token.
- Inbound (GitLab β Nota) β
@notamentions in comments get an in-thread reply and merge-request opens auto-run your workflows. Needs a webhook.
Outbound β let Nota act on your project
Step 1 β Create the GitLab access token
In GitLab:- Click your profile icon (top-right) and open Preferences.
- In the left navigation pane, click Access, then Personal access tokens.
- Create a fine-grained or legacy (classic) token, whichever fits your policy.
- Set a Name (e.g.
nota-integration) and an Expiration date β plan to rotate. - Under Resource access (fine-grained) or Scopes (legacy), grant what Nota needs:
apiβ minimum for reading MRs / issues and posting comments.read_repositoryβ recommended so Nota can read repo contents.
glpat-... token immediately β GitLab shows it only once.
Where to add it in Nota
In Nota β Settings β Integrations β GitLab β Configure, paste the token into the GitLab Access Token field. Save β Nota uses it immediately, no redeploy needed.Step 2 β Set the Default Project Path (optional)
The Default Project Path is the project Nota files issues to from automated workflow notifications. Itβs the full URL path including the repo name. Take everything aftergitlab.com/, including the repo name:
A numeric GitLab project ID (e.g.
12345678) is also accepted β GitLabβs REST API resolves both shapes identically. Do not include the host or a leading slash.Inbound β @mentions & merge-request events
Wire GitLab to post events into Nota. Follow the steps in order β youβll create a secret, add a webhook in GitLab, then match it in Nota.Step 1 β Generate a webhook secret
Generate a high-entropy secret and save it β youβll paste the same value into GitLab (Step 4) and Nota (Step 5):X-Gitlab-Token header and Nota exact-matches it. On the hosted app itβs required β without it, events fail.
Step 2 β Open your project
Go to gitlab.com/dashboard/home. In the left navigation, click Projects and select the project you want to connect.Step 3 β Identify your Namespace Path
Your Namespace Path is the URL segment(s) before the repo name. Save it for Step 5:
Enter the URL slug β not the display name, not a full URL, no leading slash.
Step 4 β Add the webhook in GitLab
In your projectβs left nav, select Settings β Webhooks, then Add new webhook.If Settings isnβt visible you lack the required project role β consult your GitLab org admin (you need Maintainer or Owner).
Under Trigger, enable the events Nota uses:
Leave the rest unchecked. Click Add webhook.
Step 5 β Configure Nota
Go to app.trynota.ai/integrations and click GitLab Settings. Fill in:
Click Update Settings.
Step 6 β Test it
Back on the GitLab webhook page, click Test β Comments. You should see:Try a real mention. Comment
@nota-bot what does this change do? on a real MR or issue β Nota replies in-thread within a few seconds. Comment edits are ignored (only new comments trigger a reply), so post a fresh comment rather than editing one.
