Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.19 KB

gitlab.md

File metadata and controls

34 lines (23 loc) · 1.19 KB

Gitlab

Auth

If you have trouble with the authinfo process below there is this nice Tweet from @agzam explaining a bit the setup!

  1. Create a personal access token using Gitlab
  2. Choose the api scope

For enterprise users do not forget to change the value of code-review-gitlab-host and code-review-gitlab-graphql-host to match the ones of your private instance. The current recommended way to use the package with enterprise solution is through code-review-forge-pr-at-point we have a bug identifying enterprise URLs in code-review-start yet.

Add a line to your auth source file, usually ~/.authinfo.gpg, with your login and token:

machine gitlab.com/api login yourlogin^code-review password MYTOKENGOESHERE

Approve Merge Request

Gitlab's repository can require a password from users before approving a Merge Request (see details here) and if this is enabled you will be prompted to type your username and password again.