Gitlab Manager

Manage GitLab repositories, merge requests, and issues via API. Use for tasks like creating repos, reviewing code in MRs, or tracking issues.

jorgermp

@jorgermp

What This Skill Does

Command-line tool for managing GitLab repositories, merge requests, and issues via the GitLab API. Supports creating repos, listing and commenting on merge requests, and opening issues.

Replaces manual GitLab web UI workflows by providing scriptable CLI commands for common repository and project management tasks.

When to Use It

  • Create a new private or public GitLab repository from the command line
  • List open merge requests for a specific project to review pending changes
  • Add a code review comment to a specific merge request
  • Open a new issue in a GitLab project with a title and description

Install

$ openclaw skills install @jorgermp/gitlab-manager

GitLab Manager

This skill allows interaction with GitLab.com via the API.

Prerequisites

  • GITLAB_TOKEN: A Personal Access Token with api scope must be set in the environment.

Usage

Use the provided Node.js script to interact with GitLab.

Script Location

scripts/gitlab_api.js

Commands

1. Create Repository

Create a new project in GitLab.

./scripts/gitlab_api.js create_repo "<name>" "<description>" "<visibility>"
# Visibility: private (default), public, internal

2. List Merge Requests

List MRs for a specific project.

./scripts/gitlab_api.js list_mrs "<project_path>" "[state]"
# Project path: e.g., "jorgermp/my-repo" (will be URL encoded automatically)
# State: opened (default), closed, merged, all

3. Comment on Merge Request

Add a comment (note) to a specific MR. Useful for code review.

./scripts/gitlab_api.js comment_mr "<project_path>" <mr_iid> "<comment_body>"

4. Create Issue

Open a new issue.

./scripts/gitlab_api.js create_issue "<project_path>" "<title>" "<description>"

Examples

Create a private repo:

GITLAB_TOKEN=... ./scripts/gitlab_api.js create_repo "new-tool" "A cool new tool" "private"

Review an MR:

# First list to find ID
GITLAB_TOKEN=... ./scripts/gitlab_api.js list_mrs "jorgermp/my-tool" "opened"
# Then comment
GITLAB_TOKEN=... ./scripts/gitlab_api.js comment_mr "jorgermp/my-tool" 1 "Great work, but check indentation."

Top skills in this category