oh-graphic-gitcode-pr-creator
1
总安装量
1
周安装量
#46240
全站排名
安装命令
npx skills add https://github.com/openharmonyinsight/openharmony-skills --skill oh-graphic-gitcode-pr-creator
Agent 安装分布
opencode
1
Skill 文档
OpenHarmony Graphic Gitcode PR Creator
Quick Start
Create a Gitcode PR by following these steps:
- Check git status – Verify modified files
- Commit changes – Add Signed-off-by to commit message
- Push to remote – Push branch to origin
- Create Issue – Create related issue
- Create PR – Use PR template from
.gitcode/PULL_REQUEST_TEMPLATE.zh-CN.md
Workflow
1. Check Git Status
git status
git diff <file>
2. Commit Changes
Get user config and create commit with Signed-off-by:
git config user.name
git config user.email
git add <files>
git commit -m "<message>\n\nSigned-off-by: <name> <<email>>"
3. Push to Remote
git push origin <branch-name>
Note: You need to ask the user for the target branch name before creating the PR. Common options:
master(default for most cases)OpenHarmony-6.1-Release(for 6.1 release branch)
4. Create Issue
Use gitcode_create_issue to create issue with:
- Title: PR title
- Body: Description of changes
5. Create PR
Read PR template from .gitcode/PULL_REQUEST_TEMPLATE.zh-CN.md and fill in:
- Description: Summary of changes
- Issue number: Link to created issue
- Test & Result: Test information
- CodeCheck: Fill all self-check results with “Pass”
- L0æ°å¢ç¨ä¾èªæ£ç»æ: Check appropriate box
Use gitcode_create_pull_request with formatted body.
CodeCheck Template
When filling CodeCheck table, ensure all rows have “Pass” in the result column:
| ç±»å | èªæ£é¡¹ | èªæ£ç»æ |
|---|---|---|
| å¤çº¿ç¨ | … | Pass |
| å åæä½ | … | Pass |
| å¤é¨è¾å ¥ | … | Pass |
| ææä¿¡æ¯ | … | Pass |
| æ°å¦è¿ç® | … | Pass |
| åå§å | … | Pass |
| æé管ç | … | Pass |
Common Patterns
Test Optimization PRs
For test file optimizations:
- Description: “Optimize <test_file> – remove redundant code and improve coverage”
- CodeCheck: All Pass (test code doesn’t typically trigger security checks)
- L0ç¨ä¾: Check “æ¯ï¼ææ°å¢L0ç¨ä¾ï¼ä¸å®æèªæ£”
Bug Fix PRs
For bug fixes:
- Description: “Fix <bug_description> in “
- Test & Result: Describe test scenario and expected behavior
- CodeCheck: All Pass
Important Notes
- Always use the Chinese PR template for OpenHarmony projects
- Ensure branch name is descriptive
- Link PR to issue for traceability
- Force push with
--forcewhen amending commits