Set minimum issue number in gitlab

We are moving from subversion to git, and we decided to use Gitlab as a web interface. We refer to the problem number in our commit messages. Since we use the Gitlab tracker, the number will be reset to 1. For this project, how can I set the minimum problem number?

+5
source share
2 answers

There seems to be no official way to do this. I actually just used the Gitlab API in Ruby to create a bunch of dummy problems and close them. I am sure that if I were really adventurous, I could probably export existing problems from our current VCS or something like that, but for our purposes it works just for that.

+1
source

I do not think there is an official way to achieve this. You will probably need your hands dirty in the database to do this. I will try to create a fictitious problem in your project that will create problem 1. Then go to the database, find the issues table and edit the position column to number one before you start, and then resolve it. Theoretically, the next problem will be the number you want to start with.

I have not tested this. If this really works, it could possibly lead to long-term issues being broken with other features or problems with future updates.

+2
source

Source: https://habr.com/ru/post/1216306/


All Articles