Handling GitLab merge requests


The first step is to log in to GitLab and get your personal access token.

Then, write a file in ~/.config/tsrc.yml containing the token:

    token: <your token>


The full config file format is described in the reference.

The second step is to tell tsrc about the HTTP url of your GitLab instance.

This is used to call the GitLab HTTP API (currently using version 4)

This is done in the manifest file:

  url: http://gitlab.local

 - ...

Creating and accepting merge requests

Here's how you can create and assign a merge request

# start working on your branch
$ tsrc push [--assignee ASSIGNEE]

When the review is done, you can accept it and let GitLab merge the branch once the CI pipeline passes with the following command:

$ tsrc push --accept