mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
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:
@@ -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}"
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user