repocollab

v0.1.0
io.github.CloudCorpRecords/repocollab Checked 4 hours ago Published 1 month ago

GitLab 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.

ParameterTypeDescription
search *stringThe search query string matched against project name, path, and description.

create_repository

Create a new GitLab project.

ParameterTypeDescription
name *stringThe name of the new GitLab project.
descriptionstringOptional description of the new project.
visibilitystringOptional project visibility level, such as private, internal, or public.

fork_repository

Fork a GitLab project, optionally into a namespace.

ParameterTypeDescription
project_id *stringThe GitLab project identifier: a numeric ID or URL-encoded project path.
namespacestringOptional target namespace (user or group path) to fork the project into.

create_branch

Create a new branch in a GitLab project from a reference.

ParameterTypeDescription
branch *stringThe name of the new branch to create.
project_id *stringThe GitLab project identifier: a numeric ID or URL-encoded project path.
refstringOptional 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.

ParameterTypeDescription
file_path *stringThe path of the file within the repository.
project_id *stringThe GitLab project identifier: a numeric ID or URL-encoded project path.
refstringOptional 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.

ParameterTypeDescription
branch *stringThe branch to commit the file change to.
commit_message *stringThe commit message for the file creation or update.
content *stringThe full text content to write to the file.
file_path *stringThe path of the file within the repository to create or update.
project_id *stringThe GitLab project identifier: a numeric ID or URL-encoded project path.
previous_pathstringOptional previous path of the file when renaming or moving it.

create_issue

Create a new issue in a GitLab project.

ParameterTypeDescription
project_id *stringThe GitLab project identifier: a numeric ID or URL-encoded project path.
title *stringThe title of the new issue.
descriptionstringOptional body text describing the issue.
labelsstringOptional comma-separated list of label names to apply to the issue.

list_issues

List issues in a GitLab project, optionally filtered by state.

ParameterTypeDescription
project_id *stringThe GitLab project identifier: a numeric ID or URL-encoded project path.
pagenumberOptional page number of results to return.
per_pagenumberOptional number of results to return per page.
statestringOptional issue state filter, such as opened or closed.

get_issue

Get a single issue in a GitLab project by its IID.

ParameterTypeDescription
issue_iid *numberThe project-scoped internal ID (IID) of the issue to retrieve.
project_id *stringThe GitLab project identifier: a numeric ID or URL-encoded project path.

create_merge_request

Create a new merge request in a GitLab project.

ParameterTypeDescription
project_id *stringThe GitLab project identifier: a numeric ID or URL-encoded project path.
source_branch *stringThe branch containing the changes to merge.
target_branch *stringThe branch to merge the changes into.
title *stringThe title of the new merge request.
descriptionstringOptional body text describing the merge request.

list_merge_requests

List merge requests in a GitLab project, optionally filtered by state.

ParameterTypeDescription
project_id *stringThe GitLab project identifier: a numeric ID or URL-encoded project path.
pagenumberOptional page number of results to return.
per_pagenumberOptional number of results to return per page.
statestringOptional 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.

ParameterTypeDescription
merge_request_iid *numberThe project-scoped internal ID (IID) of the merge request to retrieve.
project_id *stringThe GitLab project identifier: a numeric ID or URL-encoded project path.