Skip to content

[12.0] Support merge request dependency endpoint #835

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 12.0
Choose a base branch
from

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant