Install
openclaw skills install github-manager全面管理GitHub仓库,支持自动代码审查、部署、changelog生成、CI/CD配置、Bug跟踪和项目管理自动化。
openclaw skills install github-manager一个全面的GitHub仓库管理工具,提供代码审查、自动部署、changelog生成、CI/CD配置、Bug追踪和项目管理自动化功能。
# 设置GitHub认证
github config --token YOUR_GITHUB_TOKEN --username YOUR_USERNAME
# 设置默认仓库
github config --default-repo username/repo-name
# 列出所有仓库
github repos list
# 创建新仓库
github repos create --name my-new-repo --description "New repository"
# 克隆仓库
github repos clone username/repo-name
# 同步仓库
github repos sync username/repo-name
# 审查PR
github review pr --number 123
# 自动审查所有打开的PR
github review all
# 设置审查规则
github review rules --set "require-tests=true"
# 部署到开发环境
github deploy dev --branch main
# 部署到生产环境
github deploy prod --tag v1.0.0
# 查看部署状态
github deploy status
# 回滚部署
github deploy rollback --to v0.9.0
# 生成changelog
github changelog generate --since v1.0.0
# 发布新版本
github release create --version v1.1.0 --notes "New features added"
# 更新changelog
github changelog update --version v1.1.1 --type "fix"
# 查看工作流状态
github ci status
# 运行特定工作流
github ci run --workflow test.yml
# 查看构建日志
github ci logs --run-id 123456
# 列出所有issue
github issues list
# 创建bug报告
github issues create --title "Bug found" --body "Description" --label bug
# 分配issue
github issues assign --number 45 --assignee username
# 关闭issue
github issues close --number 45 --comment "Fixed in PR #123"
# 查看项目看板
github projects list
# 添加任务到看板
github projects add-task --project "Development" --title "Implement feature X"
# 更新任务状态
github projects update --task 123 --status "In Progress"
# 生成进度报告
github projects report --weekly
# 检查未处理的PR
github daily-check prs
# 检查失败的CI构建
github daily-check ci
# 检查过期的issue
github daily-check issues
# 完整的发布流程
github release workflow --version v1.2.0
{
"github": {
"token": "YOUR_GITHUB_TOKEN",
"username": "YOUR_USERNAME",
"defaultRepo": "username/repo-name",
"webhookUrl": "https://your-webhook-url.com",
"environments": {
"dev": {
"branch": "develop",
"autoDeploy": true
},
"prod": {
"branch": "main",
"requireReview": true
}
}
}
}
github --debug <command>
可以在scripts/目录下添加自定义脚本扩展功能。
支持通过插件添加新功能:
github plugin install <plugin-name>
定期检查更新:
github self-update
查看版本信息:
github version
注意: 使用前请确保已正确配置GitHub认证信息。