返回顶部
g

gitlab-managerGitLab管理

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

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
3,170
下载量
免费
免费
5
收藏
概述
安装方式
版本历史

gitlab-manager

GitLab 管理器

该技能允许通过API与GitLab.com进行交互。

前置条件

  • - GITLAB_TOKEN:需在环境中设置一个具有api权限的个人访问令牌。

使用方法

使用提供的Node.js脚本与GitLab进行交互。

脚本位置

scripts/gitlab_api.js

命令

1. 创建仓库

在GitLab中创建一个新项目。 bash ./scripts/gitlabapi.js createrepo <名称> <描述> <可见性>

可见性:private(默认)、public、internal

2. 列出合并请求

列出指定项目的MR。 bash ./scripts/gitlabapi.js listmrs <项目路径> [状态]

项目路径:例如 jorgermp/my-repo(将自动进行URL编码)

状态:opened(默认)、closed、merged、all

3. 评论合并请求

向指定MR添加评论(备注)。适用于代码审查。 bash ./scripts/gitlabapi.js commentmr <项目路径> <评论内容>

4. 创建问题

创建一个新问题。 bash ./scripts/gitlabapi.js createissue <项目路径> <标题> <描述>

示例

创建私有仓库:
bash
GITLABTOKEN=... ./scripts/gitlabapi.js create_repo new-tool 一个很酷的新工具 private

审查MR:
bash

先列出以查找ID


GITLABTOKEN=... ./scripts/gitlabapi.js list_mrs jorgermp/my-tool opened

然后评论


GITLABTOKEN=... ./scripts/gitlabapi.js comment_mr jorgermp/my-tool 1 工作做得很好,但请检查缩进。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 gitlab-manager-1776373441 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 gitlab-manager-1776373441 技能

通过命令行安装

skillhub install gitlab-manager-1776373441

下载

⬇ 下载 gitlab-manager v1.0.0(免费)

文件大小: 2.59 KB | 发布时间: 2026-4-17 14:34

v1.0.0 最新 2026-4-17 14:34
Initial release of gitlab-manager.

- Manage GitLab repositories, merge requests, and issues via the API.
- Supports creating repositories, listing and commenting on merge requests, and creating issues using a Node.js script.
- Requires GITLAB_TOKEN with appropriate API permissions.
- Designed for simple command-line integration and automation of common GitLab tasks.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部