oh-pr-workflow
Installation
SKILL.md
oh-pr-workflow: OpenHarmony PR Lifecycle Workflow
Unified workflow for OpenHarmony GitCode repositories. Five modes:
- Commit only: user says "提交", "commit" → commit with standardized message, stop
- Full PR: user says "创建PR", "提个PR" → commit (if needed) + push + Issue + PR
- Fix Codecheck: user says "修复告警", "修复门禁", "修复codecheck" or provides a PR URL → fetch gate codecheck defects and auto-fix
- Review PR: user says "review pr", "检视pr", "看下这个pr" + PR URL → fetch PR changes to local for review
- Fix Review: user says "修复review", "修复检视意见", "fix review" + PR URL → fetch unresolved review comments and auto-fix
Mode Selection (Quick Reference)
| User Intent | Mode | Skip to |
|---|---|---|
| "提交", "commit" | Mode 1: Commit Only | Mode 1 |
| "创建PR", "提个PR" | Mode 2: Full PR | Mode 2 |
| "修复告警", "修复门禁", "fix codecheck" + PR URL | Mode 3: Fix Codecheck | Mode 3 |
| "review pr", "检视pr" + PR URL | Mode 4: Review PR | Mode 4 |
| "修复review", "fix review" + PR URL | Mode 5: Fix Review | Mode 5 |