Skip to content

Conversation

@kayw-geek
Copy link

@kayw-geek kayw-geek commented Jun 17, 2025

Support Merge Request Dependencies API

🎯 Overview

Add comprehensive support for GitLab's Merge Request Dependencies API, enabling developers to manage blocking relationships between merge requests programmatically.

✨ Features Added

New API Methods

  • createDependency() - Create dependency between merge requests
  • dependencies() - List all dependencies for a merge request
  • deleteDependency() - Remove dependency relationship
  • blockedMrs() - Get merge requests blocked by current MR

API Endpoints Covered

POST   /projects/:id/merge_requests/:merge_request_iid/blocks (The example in the official document is wrong.)
GET    /projects/:id/merge_requests/:merge_request_iid/blocks
DELETE /projects/:id/merge_requests/:merge_request_iid/blocks/:block_id
GET    /projects/:id/merge_requests/:merge_request_iid/blockees

Related: GitLab Merge Request Dependencies API Documentation

@kayw-geek kayw-geek changed the title Support merge request dependency endpoint [12.0] Support merge request dependency endpoint Jun 17, 2025
@kayw-geek kayw-geek force-pushed the feature/support-mr-dependency branch 2 times, most recently from cee6b19 to 3920648 Compare June 20, 2025 05:10
@kayw-geek kayw-geek force-pushed the feature/support-mr-dependency branch from 3920648 to 0eea94d Compare June 20, 2025 05:15
@kayw-geek
Copy link
Author

kayw-geek commented Jun 20, 2025

Hey @GrahamCampbell, could you take a look at this when you get a chance? Thanks!

@stale
Copy link

stale bot commented Dec 5, 2025

This issue has been automatically marked as stale because there has been no recent activity. It will be closed after 30 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant