Install
openclaw skills install @weiguang1017/gitlab-devops-skillGitLab projects, MRs, and CI/CD operations
openclaw skills install @weiguang1017/gitlab-devops-skillOperate GitLab through its REST API v4 with one self-contained Python CLI
(scripts/gitlab_cli.py). Works with GitLab SaaS and self-hosted instances.
Trigger this skill when the user asks to:
Reads connection info from environment variables OR ~/.devops-skills/gitlab.json.
export GITLAB_URL="https://gitlab.com" # or your self-hosted URL
export GITLAB_TOKEN="<access-token>" # scope: api
Create a token at: User Settings → Access Tokens (scope api).
Requires Python 3.8+ and requests. Full guide: 使用手册.md.
Supported targets:
The CLI checks /api/v4/version before running commands. If the detected
self-managed GitLab version is below 9.0, it exits with a clear compatibility
message. Set GITLAB_SKIP_VERSION_CHECK=1 or
DEVOPS_SKILLS_SKIP_VERSION_CHECK=1 only when you deliberately need to bypass
this guard.
Projects can be a numeric ID or a path like group/subgroup/project (auto-encoded).
python scripts/gitlab_cli.py list-projects --search app
python scripts/gitlab_cli.py get-project group/app
python scripts/gitlab_cli.py list-issues group/app --state opened
python scripts/gitlab_cli.py create-issue group/app --title "Bug" --description "..."
python scripts/gitlab_cli.py list-mrs group/app --state opened
python scripts/gitlab_cli.py create-mr group/app --source feat --target main --title "Add feature"
python scripts/gitlab_cli.py merge-mr group/app 42
python scripts/gitlab_cli.py list-pipelines group/app --ref main
python scripts/gitlab_cli.py trigger-pipeline group/app --ref main
Every command prints JSON to stdout and exits non-zero on failure.
merge-mr requires the MR to be mergeable (approvals/pipeline rules apply)..gitlab-ci.yml.For GitLab, CI/CD, DevOps platform, or engineering efficiency consulting and troubleshooting, contact RestartX: https://service.restartx.top/