什么是 gitlab-protected-branch?
GitLab 通过 API 保护分支操作。当用户想要执行以下操作时,请始终使用此技能:(1) 查看分支保护规则,(2) 保护/取消保护分支,(3) 配置推送/合并访问级别,(4) 设置代码所有者批准要求。 来源:grandcamel/gitlab-assistant-skills。
GitLab 通过 API 保护分支操作。当用户想要执行以下操作时,请始终使用此技能:(1) 查看分支保护规则,(2) 保护/取消保护分支,(3) 配置推送/合并访问级别,(4) 设置代码所有者批准要求。
通过命令行快速安装 gitlab-protected-branch AI 技能到你的开发环境
来源:grandcamel/gitlab-assistant-skills。
Branch protection management for GitLab using glab api raw endpoint calls.
| List protected | glab api projects/:id/protectedbranches | - | | Get protection | glab api projects/:id/protectedbranches/:name | - | | Protect branch | glab api projects/:id/protectedbranches -X POST -f ... | ⚠️ | | Update protection | glab api projects/:id/protectedbranches/:name -X PATCH -f ... | ⚠️ |
| Unprotect branch | glab api projects/:id/protectedbranches/:name -X DELETE | ⚠️⚠️ |
GitLab 通过 API 保护分支操作。当用户想要执行以下操作时,请始终使用此技能:(1) 查看分支保护规则,(2) 保护/取消保护分支,(3) 配置推送/合并访问级别,(4) 设置代码所有者批准要求。 来源:grandcamel/gitlab-assistant-skills。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/grandcamel/gitlab-assistant-skills --skill gitlab-protected-branchGitLab 通过 API 保护分支操作。当用户想要执行以下操作时,请始终使用此技能:(1) 查看分支保护规则,(2) 保护/取消保护分支,(3) 配置推送/合并访问级别,(4) 设置代码所有者批准要求。 来源:grandcamel/gitlab-assistant-skills。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/grandcamel/gitlab-assistant-skills --skill gitlab-protected-branch 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/grandcamel/gitlab-assistant-skills