Skip to content

Implement GET API endpoints for merge request dependencies

What does this MR do and why?

This will introduce the following endpoints into the REST API:

  • GET /projects/:id/merge_requests/:iid/blocks
  • GET /projects/:id/merge_requests/:iid/blocks/:block_id

"blocks" being merge request dependencies.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

  1. Check out this MR
  2. In the GDK, find a merge request and add a dependency on another merge request (or more!)
  3. Confirm you can access the API with: `curl --header "PRIVATE-TOKEN: $GITLAB_LOCAL_TOKEN" "https://gdk.test:3443/api/v4/projects/[project id here]/merge_requests/[MR id here]/blocks"

Related to #364160 (closed)

Edited by Gary Holtz

Merge request reports

Loading