repocollab
v0.1.0GitLab projects, branches, files, issues and merge requests via the GitLab REST API.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_repositories
Search for GitLab projects by name, path, or description.
| Parameter | Type | Description |
|---|---|---|
search * | string | The search query string matched against project name, path, and description. |
create_repository
Create a new GitLab project.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the new GitLab project. |
description | string | Optional description of the new project. |
visibility | string | Optional project visibility level, such as private, internal, or public. |
fork_repository
Fork a GitLab project, optionally into a namespace.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The GitLab project identifier: a numeric ID or URL-encoded project path. |
namespace | string | Optional target namespace (user or group path) to fork the project into. |
create_branch
Create a new branch in a GitLab project from a reference.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The name of the new branch to create. |
project_id * | string | The GitLab project identifier: a numeric ID or URL-encoded project path. |
ref | string | Optional source reference (branch, tag, or commit) to create the branch from. |
get_file_contents
Get the contents of a file in a GitLab project at a reference.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | The path of the file within the repository. |
project_id * | string | The GitLab project identifier: a numeric ID or URL-encoded project path. |
ref | string | Optional reference (branch, tag, or commit) to read the file at. |
create_or_update_file
Create a file in a GitLab project, or update it if it already exists.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The branch to commit the file change to. |
commit_message * | string | The commit message for the file creation or update. |
content * | string | The full text content to write to the file. |
file_path * | string | The path of the file within the repository to create or update. |
project_id * | string | The GitLab project identifier: a numeric ID or URL-encoded project path. |
previous_path | string | Optional previous path of the file when renaming or moving it. |
create_issue
Create a new issue in a GitLab project.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The GitLab project identifier: a numeric ID or URL-encoded project path. |
title * | string | The title of the new issue. |
description | string | Optional body text describing the issue. |
labels | string | Optional comma-separated list of label names to apply to the issue. |
list_issues
List issues in a GitLab project, optionally filtered by state.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The GitLab project identifier: a numeric ID or URL-encoded project path. |
page | number | Optional page number of results to return. |
per_page | number | Optional number of results to return per page. |
state | string | Optional issue state filter, such as opened or closed. |
get_issue
Get a single issue in a GitLab project by its IID.
| Parameter | Type | Description |
|---|---|---|
issue_iid * | number | The project-scoped internal ID (IID) of the issue to retrieve. |
project_id * | string | The GitLab project identifier: a numeric ID or URL-encoded project path. |
create_merge_request
Create a new merge request in a GitLab project.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The GitLab project identifier: a numeric ID or URL-encoded project path. |
source_branch * | string | The branch containing the changes to merge. |
target_branch * | string | The branch to merge the changes into. |
title * | string | The title of the new merge request. |
description | string | Optional body text describing the merge request. |
list_merge_requests
List merge requests in a GitLab project, optionally filtered by state.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The GitLab project identifier: a numeric ID or URL-encoded project path. |
page | number | Optional page number of results to return. |
per_page | number | Optional number of results to return per page. |
state | string | Optional merge request state filter, such as opened, closed, or merged. |
get_merge_request
Get a single merge request in a GitLab project by its IID.
| Parameter | Type | Description |
|---|---|---|
merge_request_iid * | number | The project-scoped internal ID (IID) of the merge request to retrieve. |
project_id * | string | The GitLab project identifier: a numeric ID or URL-encoded project path. |