chore: optimize issue auto-response prompt structure and guidelines

- Removed redundant project structure details (references AGENTS.md instead)
- Added explicit Skip Conditions section with clear criteria
- Simplified Response Guidelines to 4 core principles
- Added unified response template with markdown format
- Emphasized mandatory GitHub posting requirement
This commit is contained in:
weishu
2026-01-08 14:39:07 +08:00
parent a9f3f7ba6b
commit 702b268a09
2 changed files with 57 additions and 57 deletions
+25 -1
View File
@@ -75,6 +75,30 @@ gh pr diff "$pr_number" -R "$repo"
## Post Response to Github
### Inline Comments
For each validated issue, create an inline comment:
```bash
gh issue comment <number> --body "Your verified response here"
gh api repos/{owner}/{repo}/pulls/{pr_number}/comments \
-f body="**[SEVERITY]** [ISSUE-TYPE] Brief description
**Why this is a problem**: Detailed explanation.
**Suggested fix**:
\`\`\`{language}
// Corrected code here
\`\`\`" \
-f commit_id="{LATEST_COMMIT_SHA}" \
-f path="{FILE_PATH}" \
-f line={LINE_NUMBER} \
-f side="RIGHT"
```
### Summary Report (MANDATORY)
Submit a comprehensive review summary:
```bash
gh pr review --comment --body "{SUMMARY}"
```