capabilities.work

List merge requests a commit is in

One step with GitLab. We can help you get access.

Look something up

List merge requests a commit is in

with GitLab
Works with AI assistants

Use GitLab: its GitLab REST Commits API lets you list merge requests a commit is in in a single step (GET /api/v4/projects/{id}/repository/commits/{sha}/merge_requests). GitLab also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.

  • Which merge requests include a particular commit?
  • Can I list only the merge requests that have been merged for a commit?
Say it to your AI assistant
  • List merge requests that include commit {sha} in project {id}.
  • Show {state} merge requests for {sha} in {id}.
For your developer

GET /api/v4/projects/{id}/repository/commits/{sha}/merge_requests in GitLab REST Commits API. Full spec on APIs.io.