with one click
ci-status
检查 OAuth2 项目在三个平台(Linux、Windows、macOS)上的 CI/CD 状态
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
检查 OAuth2 项目在三个平台(Linux、Windows、macOS)上的 CI/CD 状态
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
通过微信机器人发送通知消息(文本、图片、文件、视频)
重新生成 Drogon ORM 模型类(基于当前数据库表结构)
构建和测试C++ OAuth2后端,包含正确的依赖管理
重置测试数据库(清空并重新初始化所有表结构和数据)
执行OAuth2系统的完整端到端(E2E)测试,验证用户登录、授权码流程、token交换、RBAC权限控制和受保护API访问的完整功能。当用户需要在代码变更后验证整个OAuth2认证流程、测试用户登录和权限管理、验证修复后的安全功能、或在生产部署前进行完整的功能验证时使用此技能。
在Docker Compose环境中执行OAuth2系统的完整集成测试和健康检查。当用户需要在代码变更后验证功能、运行端到端测试、检查Docker环境健康状态、或需要验证整个OAuth2系统(前端+后端+数据库+缓存)的集成时使用此技能。确保在Docker环境中测试所有组件的集成,包括健康检查、OAuth2流程、API端点、数据库连接、Redis缓存和前后端通信。
| name | ci-status |
| description | 检查 OAuth2 项目在三个平台(Linux、Windows、macOS)上的 CI/CD 状态 |
快速检查所有平台的 CI 状态,无需打开 GitHub。
当代码变更后需要验证 CI 是否通过,或快速定位哪个平台出现问题时使用 /ci-status。
| 平台 | 工作流文件 | 状态检查命令 |
|---|---|---|
| Linux | .github/workflows/ci-linux.yml | gh run list --workflow=ci-linux.yml --limit 1 |
| Windows | .github/workflows/ci-windows.yml | gh run list --workflow=ci-windows.yml --limit 1 |
| macOS | ./github/workflows/ci-macos.yml | gh run list --workflow=ci-macos.yml --limit 1 |
# 检查所有平台的最新运行状态
gh run list --workflow=ci-linux.yml --limit 1
gh run list --workflow=ci-windows.yml --limit 1
gh run list --workflow=ci-macos.yml --limit 1
# 查看具体运行详情
gh run view [run-id]
# 查看运行日志
gh run view [run-id] --log
# 查看失败的工作流
gh run list --json --jq '.[] | select(.status != "success")'
# 重新触发特定工作流
gh workflow run ci-linux.yml
gh workflow run ci-windows.yml
gh workflow run ci-macos.yml
| 状态 | 含义 | 行动 |
|---|---|---|
| success | 构建成功,测试通过 | 无需操作 |
| failure | 构建失败或测试失败 | 查看日志并修复 |
| pending | 等待运行中 | 等待完成 |
| cancelled | 用户取消 | 重新触发 |
## CI/CD 状态报告
### ✅ Linux CI
- **状态**: [成功/失败/进行中]
- **运行ID**: [run-id]
- **提交**: [commit hash]
- **时间**: [运行时间]
- **详情**: `gh run view [run-id]`
### ✅ Windows CI
- **状态**: [状态信息]
- **运行ID**: [run-id]
- **提交**: [commit hash]
- **时间**: [运行时间]
### ✅ macOS CI
- **状态**: [状态信息]
- **运行ID**: [run-id]
- **提交**: [commit hash]
- **时间**: [运行时间]
建议在 .bashrc 或 .bash_profile 中添加别名:
alias ci-check='gh run list --workflow=ci-linux.yml --limit 3 && gh run list --workflow=ci-windows.yml --limit 3 && gh run list --workflow=ci-macos.yml --limit 3'
alias ci-failed='gh run list --json --jq ".[] | select(.status != \"success\") | .html_url"'
alias ci-retry='gh workflow run ci-linux.yml && gh workflow run ci-windows.yml && gh workflow run ci-macos.yml'
gh)gh auth login)