create_merge_request
Create a merge request with cross-project support on GitHub and GitLab. Specify source and target branches, assignee, and description.
Instructions
Create a new merge request with cross-project support
Args: platform: Git platform name (github, gitlab, etc.) project_id: Source project ID (for cross-project MRs) or project ID (for same-project MRs) title: Merge request title source_branch: Source branch name or 'owner:branch' format for cross-repo target_branch: Target branch name (default: 'main') description: Optional merge request description assignee: Optional assignee username target_project_id: Optional target project ID for cross-project merge requests **kwargs: Additional platform-specific parameters
Returns: Dict containing merge request details
Examples: # Same-project MR create_merge_request("gitlab", "123", "Fix bug", "feature-branch", "main")
# Cross-project MR (fork to upstream)
create_merge_request("gitlab", "456", "Fix bug", "feature-branch", "main",
target_project_id="123")
# GitHub cross-repo PR (using branch format)
create_merge_request("github", "upstream/repo", "Fix bug", "fork-owner:feature-branch", "main")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| kwargs | Yes | ||
| assignee | No | ||
| platform | Yes | ||
| milestone | No | ||
| project_id | Yes | ||
| description | No | ||
| source_branch | Yes | ||
| target_branch | No | main | |
| target_project_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |