NARKOZ / gitlab

Ruby wrapper and CLI for the GitLab REST API
https://narkoz.github.io/gitlab
BSD 2-Clause "Simplified" License
1.06k stars 394 forks source link

Add the Issues /related_merge_requests endpoint #675

Closed fvarose closed 3 months ago

fvarose commented 1 year ago

This adds a missing endpoint for issues: /related_merge_requests.

I confirmed this works by testing with a local GitLab instance running via gdk:

pry(main)> Gitlab.related_merge_requests(7, 8).length
=> 2

pry(main)> Gitlab.related_merge_requests(7, 8)
=> [#<Gitlab::ObjectifiedHash:1560 {hash: {"id"=>28, "iid"=>1, "project_id"=>7, "title"=>"Dolorem id velit magnam ut ut aut beatae.", "description"=>"Molestiae quam corrupti sed facere id.", "state"=>"merged", ... }}]
mnuzzo24 commented 1 year ago

Hi @NARKOZ

Would you be able to take a look at this, please?

Thanks in advance 🙏

cc : @fvarose

github-actions[bot] commented 10 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

NARKOZ commented 3 months ago

Added in #683 Thank you.