← 返回
未分类 中文

GitLab

Work with GitLab projects, issues, merge requests, commits, branches, pipelines, and groups via the GitLab API. Use this skill when users want to list projec...
通过 GitLab API 操作项目、议题、合并请求、提交、分支、流水线及分组,适用于用户需要列出项目等场景。
hith3sh hith3sh 来源
未分类 clawhub v1.0.5 2 版本 100000 Key: 无需
★ 6
Stars
📥 1,500
下载
💾 1
安装
2
版本
#latest

概述

GitLab

!GitLab

Access GitLab via the GitLab API with OAuth authentication. Manage projects, issues, merge requests, commits, branches, pipelines, and groups.

This skill uses ClawLink for hosted connection flows and credentials so you do not need to configure GitLab API access yourself.

Setup in 3 Steps

Step 1: InstallStep 2: Pair AccountStep 3: Connect GitLab
:---::---::---:
!Install!PairApp-specific connection GIF coming soon
Run the install command in OpenClawSign in and approve the deviceOpen the dashboard and connect GitLab

How It Works

┌─────────────────┐     ┌──────────────┐     ┌──────────────────┐
│   OpenClaw      │────▶│   ClawLink   │────▶│   GitLab API     │
│   (User Chat)   │     │   (OAuth)    │     │   (REST)         │
└─────────────────┘     └──────────────┘     └──────────────────┘
         │                       │                       │
         │  1. Install Plugin    │                       │
         │  2. Pair Device       │                       │
         │  3. Connect GitLab    │                       │
         │                       │  4. Secure Token      │
         │                       │  5. Proxy Requests    │
         │                       │                       │
         ▼                       ▼                       ▼
   ┌──────────┐           ┌──────────┐           ┌──────────┐
   │  SKILL   │           │ Dashboard│           │ GitLab   │
   │  File    │           │ Auth     │           │ Projects │
   └──────────┘           └──────────┘           └──────────┘

Install

Install the verified ClawLink plugin from ClawHub. After the user confirms, complete the full setup so ClawLink tools are visible in the next OpenClaw chat.

openclaw plugins install clawhub:clawlink-plugin
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart

Then tell the user: "OpenClaw has been restarted. Send /new as a standalone message to start a fresh chat, then ask for GitLab again."

Quick Start

# List projects for the authenticated user
clawlink_call_tool --tool "gitlab_get_projects" --params '{}'

# Get a specific project
clawlink_call_tool --tool "gitlab_get_project" --params '{"id": "owner/repo-name"}'

# List project issues
clawlink_call_tool --tool "gitlab_list_project_issues" --params '{"id": "owner/repo-name", "state": "opened"}'

Authentication

All GitLab tool calls are authenticated automatically by ClawLink using the user's connected GitLab account.

No API key is required in chat. ClawLink stores the OAuth token securely and injects it into every GitLab API request on the user's behalf.

Getting Connected

  1. Install the ClawLink plugin (see Install above).
  2. Pair the plugin with clawlink_begin_pairing if it is not configured yet.
  3. Open https://claw-link.dev/dashboard?add=gitlab and connect GitLab.
  4. Call clawlink_list_integrations to verify the connection is active.

Connection Management

List Connections

clawlink_list_integrations

Response: Returns all connected integrations. Look for gitlab in the list.

Verify Connection

clawlink_list_tools --integration gitlab

Response: Returns the live tool catalog for GitLab.

Reconnect

If GitLab tools are missing or the connection shows an error:

  1. Direct the user to https://claw-link.dev/dashboard?add=gitlab
  2. After they confirm, call clawlink_list_integrations to verify
  3. Then call clawlink_list_tools --integration gitlab

Security & Permissions

  • Access is scoped to projects and resources accessible to the connected GitLab account.
  • All write operations require explicit user confirmation. Before executing any create, update, or delete call, confirm the target resource and intended effect with the user.
  • Destructive actions (deleting projects, archiving, removing members) are marked as high-impact and must be confirmed.
  • CI/CD pipeline operations affect build and deployment systems — confirm before triggering or canceling.

Tool Reference

Projects

ToolDescriptionMode
-------------------------
gitlab_get_projectsList all projects accessible to the authenticated userRead
gitlab_get_projectGet project details by ID or pathRead
gitlab_create_projectCreate a new projectWrite
gitlab_archive_projectArchive a project (read-only)Write
gitlab_delete_projectDelete a project permanentlyWrite
gitlab_list_project_pipelinesList CI/CD pipelines for a projectRead

Groups

ToolDescriptionMode
-------------------------
gitlab_get_groupsList all groupsRead
gitlab_get_groupGet group detailsRead
gitlab_create_groupCreate a new groupWrite
gitlab_list_group_membersList direct members of a groupRead
gitlab_list_all_group_membersList all members (direct, inherited, invited)Read

Issues

ToolDescriptionMode
-------------------------
gitlab_list_project_issuesList issues with filtering (state, labels, assignee)Read
gitlab_get_project_issueGet issue detailsRead
gitlab_create_project_issueCreate a new issueWrite
gitlab_update_project_issueUpdate issue fields (title, description, labels, state)Write

Merge Requests

ToolDescriptionMode
-------------------------
gitlab_get_project_merge_requestsList merge requestsRead
gitlab_get_project_merge_requestGet MR detailsRead
gitlab_get_merge_request_notesGet comments on an MRRead

Commits & Branches

ToolDescriptionMode
-------------------------
gitlab_list_repository_commitsList commits in a repositoryRead
gitlab_get_single_commitGet commit detailsRead
gitlab_get_repository_branchesList branchesRead
gitlab_create_repository_branchCreate a new branchWrite

Members

ToolDescriptionMode
-------------------------
gitlab_list_all_project_membersList all project membersRead
gitlab_import_project_membersImport members from one project to anotherWrite

User Status

ToolDescriptionMode
-------------------------
gitlab_get_user_statusGet current user's GitLab statusRead
gitlab_set_user_statusSet current user's status messageWrite

Code Examples

List project issues

clawlink_call_tool --tool "gitlab_list_project_issues" \
  --params '{
    "id": "owner/repo-name",
    "state": "opened",
    "per_page": 20
  }'

Create a new issue

clawlink_call_tool --tool "gitlab_create_project_issue" \
  --params '{
    "id": "owner/repo-name",
    "title": "Bug: Login fails on mobile",
    "description": "Steps to reproduce: 1. Go to login 2. Enter credentials 3. Error shown",
    "labels": ["bug", "priority::high"]
  }'

Create a new branch

clawlink_call_tool --tool "gitlab_create_repository_branch" \
  --params '{
    "id": "owner/repo-name",
    "branch": "feature/new-feature",
    "ref": "main"
  }'

List pipeline jobs

clawlink_call_tool --tool "gitlab_list_pipeline_jobs" \
  --params '{
    "id": "owner/repo-name",
    "pipeline_id": 123
  }'

Discovery Workflow

  1. Call clawlink_list_integrations to confirm GitLab is connected.
  2. Call clawlink_list_tools --integration gitlab to see the live catalog.
  3. Treat the returned list as the source of truth. Do not guess or assume what tools exist.
  4. If the user describes a capability but the exact tool is unclear, call clawlink_search_tools with a short query and integration gitlab.
  5. If no GitLab tools appear, direct the user to https://claw-link.dev/dashboard?add=gitlab.

Execution Workflow

┌─────────────────────────────────────────────────────────────┐
│  READ OPERATIONS (Safe)                                     │
│  list → get → search → describe → call                      │
│                                                             │
│  Example: List issues → Get issue → Show details            │
└─────────────────────────────────────────────────────────────┘
                              │
                              ▼
┌─────────────────────────────────────────────────────────────┐
│  WRITE OPERATIONS (Require Confirmation)                    │
│  list → get → describe → preview → confirm → call           │
│                                                             │
│  Example: Describe tool → Preview issue → User approves     │
│           → Execute create                                   │
└─────────────────────────────────────────────────────────────┘
  1. For unfamiliar tools, ambiguous requests, or any write action, call clawlink_describe_tool first.
  2. Use the returned guidance, schema, whenToUse, askBefore, safeDefaults, examples, and followups to shape the call.
  3. Prefer read, list, search, and get operations before writes when that reduces ambiguity.
  4. For writes or anything marked as requiring confirmation, call clawlink_preview_tool first.
  5. Execute with clawlink_call_tool. Pass confirmation only after the preview matches the user's intent.
  6. If the tool call fails, report the real error. Do not invent results or restate the failure as a missing capability unless the live catalog supports that conclusion.

Notes

  • GitLab project IDs can be numeric (12345) or path-based (owner/repo-name).
  • GitLab uses scoped labels (bug, priority::high) rather than simple strings.
  • Merge request IIDs are different from issue IIDs — they are numbered separately.
  • Pipeline status values: pending, running, success, failed, canceled, skipped.

Error Handling

Status / ErrorMeaning
-------------------------
Tool not foundThe tool name does not exist in the current catalog. Verify with clawlink_list_tools --integration gitlab.
Missing connectionGitLab is not connected. Direct the user to https://claw-link.dev/dashboard?add=gitlab.
404 Not FoundProject, issue, or MR does not exist. Verify the ID or path.
403 ForbiddenInsufficient permissions for the requested operation.
Write rejectedUser did not confirm a write action. Always confirm before executing writes.

Troubleshooting: Tools Not Visible

  1. Check that the ClawLink plugin is installed:

```bash

openclaw plugins list

```

  1. If the plugin is installed but tools are missing, tell the user to send /new as a standalone message to reload the catalog.
  2. If a fresh chat does not help, run:

```bash

openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json

openclaw gateway restart

```

  1. After restart, tell the user to send /new again and retry.

Troubleshooting: Invalid Tool Call

  1. Ensure the integration slug is exactly gitlab.
  2. Use clawlink_describe_tool to verify parameter names and types before calling.
  3. For write operations, always call clawlink_preview_tool first.

Resources

Related Skills


Powered by ClawLink — an integration hub for OpenClaw

!ClawLink Logo

版本历史

共 2 个版本

  • v1.0.5 当前
    2026-06-09 16:12 安全 安全
  • v0.1.0
    2026-05-21 13:47 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

GitHub

hith3sh
通过 GitHub REST 和GraphQL API 与仓库、议题、拉取请求、提交、分支、发布和工作流进行交互。在需要时使用此技能。
★ 6 📥 1,779

OneDrive Files

hith3sh
通过 Microsoft Graph 浏览、搜索、下载和共享 OneDrive 文件,创建文件夹,上传文件以及管理文件操作。当用户需要这些功能时使用此技能。
★ 6 📥 1,715

Notion Assistant

hith3sh
搜索页面和数据库、更新内容、管理 Notion 工作区数据,支持从聊天中读取、创建或修改 Notion 页面...
★ 8 📥 1,771