From f0ad750d6cbdbfdb6ff57c5ce371134569956757 Mon Sep 17 00:00:00 2001 From: Ben Force Date: Fri, 15 Mar 2024 07:14:02 -0500 Subject: [PATCH] docs: add documentation --- docs/docs/customization/context-providers.md | 31 ++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/docs/docs/customization/context-providers.md b/docs/docs/customization/context-providers.md index 3328f2fbb..d17835a3d 100644 --- a/docs/docs/customization/context-providers.md +++ b/docs/docs/customization/context-providers.md @@ -120,6 +120,37 @@ Type '@issue' to reference the conversation in a GitHub issue. Make sure to incl } ``` +### GitLab Merge Request + +Type `@gitlab-mr` to reference an open MR for this branch on GitLab. + +#### Configuration + +You will need to create a [personal access token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html) with the `read_api` scope. then add the following to your configuration: + +```json +{ + "name": "gitlab-mr", + "params": { + "token": "..." + } +} +``` + +#### Using Self-Hosted GitLab + +You can specify the domain to communicate with by setting the `domain` parameter in your configurtion. By default this is set to `gitlab.com`. + +```json +{ + "name": "gitlab-mr", + "params": { + "token": "...", + "domain": "gitlab.example.com" + } +} +``` + ### Jira Issues Type '@jira' to reference the conversation in a Jira issue. Make sure to include your own [Atlassian API Token](https://id.atlassian.com/manage-profile/security/api-tokens).