Close Gitlab issue via commit

Viewed 14885

I spend my day doing this:

  1. Read an issue on a Gitlab-powered issue tracker,
  2. Fix the issue,
  3. Commit and push to the same Gitlab-powered Git server,
  4. Mark the issue as closed.

To remove the 4th step, how can I close the issue automatically when committing?

2 Answers

According to this link from gitlab, you will be able to do that with a variety of words such as "fixes" or "closes". It does not need to be in a seperate line.

So you could have the following message:

Fixes #20. I had to replace "foo" with "bar".

And that will close issue #20.

Related