How to remove merge request from GitLab server

前端 未结 4 2001
清酒与你
清酒与你 2021-02-02 06:32

I created a merge request on gitlab (local) server. Now whenever I click on the merge request, the request times out with error 500. Before that I used to get an error code 504

4条回答
  •  不要未来只要你来
    2021-02-02 07:18

    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'}

提交回复
热议问题