opencode-gitlab-plugin 2.7.0 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
4
4
 
5
+ ## [2.8.0](https://gitlab.com/vglafirov/opencode-gitlab-plugin/compare/v2.7.0...v2.8.0) (2026-09-06)
6
+
7
+
8
+ ### ✨ Features
9
+
10
+ * **merge-requests:** support target_project_id for cross-project MRs ([e03a3b4](https://gitlab.com/vglafirov/opencode-gitlab-plugin/commit/e03a3b436e2ad7ef3540fee1ee380a6ef5b03b09))
11
+
5
12
  ## [2.7.0](https://gitlab.com/vglafirov/opencode-gitlab-plugin/compare/v2.6.1...v2.7.0) (2026-08-17)
6
13
 
7
14
 
package/README.md CHANGED
@@ -343,13 +343,13 @@ Or for API tokens:
343
343
 
344
344
  The plugin provides **64 tools** organized into the following categories:
345
345
 
346
- ### Merge Request Tools (8 tools)
346
+ ### Merge Request Tools (9 tools)
347
347
 
348
348
  | Tool | Description |
349
349
  | ----------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
350
350
  | `gitlab_get_merge_request` | Get details of a specific merge request with title, description, state, author, assignees, reviewers, labels, and diff stats |
351
351
  | `gitlab_list_merge_requests` | List merge requests with filtering by state, scope, and labels |
352
- | `gitlab_create_merge_request` | Create a new merge request |
352
+ | `gitlab_create_merge_request` | Create a new merge request (supports target_project_id for fork-to-upstream MRs) |
353
353
  | `gitlab_update_merge_request` | Update merge request title, description, state, assignees, reviewers, and labels |
354
354
  | `gitlab_get_mr_changes` | Get file changes/diffs for a merge request |
355
355
  | `gitlab_get_mr_details` | Get additional MR details (commits or pipelines) with detail_type parameter |
package/dist/index.js CHANGED
@@ -2830,7 +2830,10 @@ Returns the created merge request with all details.`,
2830
2830
  milestone_id: z.number().optional().describe("The ID of a milestone"),
2831
2831
  remove_source_branch: z.boolean().optional().describe("Remove source branch after merge (default: false)"),
2832
2832
  squash: z.boolean().optional().describe("Squash commits on merge (default: false)"),
2833
- allow_collaboration: z.boolean().optional().describe("Allow commits from members who can merge to the target branch")
2833
+ allow_collaboration: z.boolean().optional().describe("Allow commits from members who can merge to the target branch"),
2834
+ target_project_id: z.number().optional().describe(
2835
+ "The ID of the target project for cross-project (fork to upstream) merge requests. Defaults to the source project when omitted."
2836
+ )
2834
2837
  },
2835
2838
  execute: async (args, _ctx) => {
2836
2839
  const client = getGitLabClient();
@@ -2845,7 +2848,8 @@ Returns the created merge request with all details.`,
2845
2848
  milestone_id: args.milestone_id,
2846
2849
  remove_source_branch: args.remove_source_branch,
2847
2850
  squash: args.squash,
2848
- allow_collaboration: args.allow_collaboration
2851
+ allow_collaboration: args.allow_collaboration,
2852
+ target_project_id: args.target_project_id
2849
2853
  });
2850
2854
  return JSON.stringify(mr, null, 2);
2851
2855
  }