gitlab
Export a repository from a Gitlab server to another Gitlab server
For GitLab versions >= 8.9 (released in June 2016) you can use the built-in export and import project feature. Please not that for the existing installations of GitLab, this option has to be enabled in the application settings (URL: /admin/application_settings) under ‘Import sources’. You have to be a GitLab admin user to enable and use … Read more
Reference an issue from a commit message in gitlab
There should be a way to reference a GitLab issue from a commit message, simply with #xx (id of the issue). Consider “Default closing pattern value “ For example the following commit message: Awesome commit message Fix #20, Fixes #21 and Closes group/otherproject#22. This commit is also related to #17 and fixes #18, #19 and … Read more
How to remove merge request from GitLab server
Web UI Option Today I discovered a way to do this with the Web UI. So for Merge Request 14 https://gitlab.example.com/MyGroup/MyProject/merge_requests/14/edit On the bottom Right you should see a red Delete button. PowerShell Option Invoke-RestMethod -Method Delete -Uri ‘https://gitlab.example.com/api/v4/projects/PROJECT_ID_GOES_HERE/merge_requests/14’ -Headers @{‘PRIVATE-TOKEN’=’PRIVATE_TOKEN_GOES_HERE’}
Creating a branch from issue in GitLab
If you create a branch with the name <issue-number>-issue-description and push that branch to gitlab, it will automatically be linked to that issue. For instance, if you have an issue with id 654 and you create a branch with name 654-some-feature and push it to gitlab, it will be linked to issue 654. Gitlab will … Read more