Gitlab

NuKeeper has GitLab support. This means NuKeeper can create PR’s to a single GitLab repository using the repository command and an access token.

Getting the Access Token

To get an access token for your user account follow these steps:

  1. Go to your user profile https://{YOUR_GITLAB_URL}/profile
  2. Select Access Tokens https://{YOUR_GITLAB_URL}/profile/personal_access_tokens
  3. Create a new Personal Access Token
    1. Assign a name.
    2. Select at least the following scopes for the token:
      1. api - Grants complete read/write access to the API, including all groups and projects.
      2. read_user - Grants read-only access to the authenticated user’s profile through the /user API endpoint, which includes username, public email, and full name. Also grants access to read-only API endpoints under /users.
      3. read_repository - Grants read-only access to repositories on private projects using Git-over-HTTP (not using the API).
    3. Click Create personal access token button
  4. Store the token and use that for a NuKeeper repo command.

Repo command

The repo command has two required arguments. The first one is the repository that you want to target. For GitLab you can use the same url that you use for cloning. So something like:

https://{YOUR_GITLAB_URL}/{PROJECT_NAME}/{REPOSITORY_NAME}.git

Now to run the command use

nukeeper repo https://{YOUR_GITLAB_URL}/{PROJECT_NAME}/{REPOSITORY_NAME}.git {Token}

Any additional arguments can be added after the app password, for more information checkout the Configuration page.