O'Reilly logo

GitLab Cookbook by Jeroen van Baarsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Referencing issues

You have created an issue in GitLab and are about to commit the code that solves a specific problem. You want to be able to reference that specific issue from your commit message, or even better, close that issue once the commit has been merged! In this recipe, we will take a look at the possibility of referencing issues and merge requests from your commits.

How to do it…

In the following steps, we will see how referencing works:

  1. Log in to GitLab.
  2. Go to the super-git project.
  3. Create an issue in that project.
  4. To reference the issue in our commit messages, we must know the issue number. You can find it in the issue overview.
    How to do it…
  5. Now, create ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required