Search code examples
gitlabgitlab-api

Is there a way to export GitLab Merge requests + comments in CSV file


In my organization, we are using a free version of GitLab - I wanted to know If there is a way to export GitLab Merge requests + comments in a CSV file

Looking for help!!


Solution

  • Since gitlab 13.6 you can export your merge-requests from the gui to a csv file.

    In the left side bar of your project you need to select merge-requests and there you have the "Export as CSV" button which will send a cvs file containing all merge-requests to your configured email address.

    enter image description here

    For lower gitlab versions you can take a look at the merge-requests api and try something like this

    GET /merge_requests?scope=all