chore: fix codex issue/pr respond

This commit is contained in:
weishu
2026-01-08 13:53:38 +08:00
parent 04edef502d
commit a9f3f7ba6b
2 changed files with 34 additions and 0 deletions
+6
View File
@@ -72,3 +72,9 @@ gh pr diff "$pr_number" -R "$repo"
**Testing**
- Suggested tests or “Not run (automation)”
## Post Response to Github
```bash
gh issue comment <number> --body "Your verified response here"
```
+28
View File
@@ -56,6 +56,34 @@ If the issue body is empty or only whitespace, treat it as empty/spam and skip.
3. **Missing Info** (if needed): short questions for version, component (cli/server/web), OS, repro, logs
4. **Next Steps**: minimal, safe guidance; no promises
### Inline Comments
For each validated issue, create an inline comment:
```bash
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}"
```
## Constraints
- **DO NOT** create PRs, modify code, or make commits