API to change Merge Request Title

,

Hello,

I am setting up a pipeline where the branch should be merged if the pipeline passes. However, due to using the free tier, this functionality is not available. Therefore, I am attempting to enhance my workflow by adding a curl command that changes the pull request (PR) title.

Is there an API endpoint available for this purpose?

I checked the GitLab documentation and attempted to use the following curl command with my access token:

curl --header "PRIVATE-TOKEN: <your_access_token>" \
  --url "https://gitlab.example.com/api/v4/projects/1/merge_requests/1/diffs?page=1&per_page=2"

However, I encountered the error message:

(6) Could not resolve host: gitlab.example.com

Thank you!

HI there,

This seems to be purely a DNS network issue - machine cannot resolve the DNS name given to your GitLab instance. I believe the best would be to turn to your IT Department in the company for help and advice.

Generally, editing MRs should be possible - from your link further down: Merge requests API | GitLab

Perhaps you can try executing the same curl request from your own computer (on which you have access to the GitLab WebUI) - this should not give you DNS resolution errors.

1 Like