chore: fix gh command in workflow

This commit is contained in:
weishu
2026-01-08 13:25:23 +08:00
parent b338d16b6b
commit 04edef502d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ Before any analysis, load PR metadata and diff from the GitHub Actions event pay
```bash
pr_number=$(jq -r '.pull_request.number' "$GITHUB_EVENT_PATH")
repo=$(jq -r '.repository.full_name' "$GITHUB_EVENT_PATH")
gh pr view "$pr_number" -R "$repo" --json number,title,body,labels,author,authorAssociation,additions,deletions,changedFiles,files
gh pr view "$pr_number" -R "$repo" --json number,title,body,labels,author,additions,deletions,changedFiles,files
gh pr diff "$pr_number" -R "$repo"
```
+1 -1
View File
@@ -26,7 +26,7 @@ Before any analysis, load the issue title/body/labels from the GitHub Actions ev
```bash
issue_number=$(jq -r '.issue.number' "$GITHUB_EVENT_PATH")
repo=$(jq -r '.repository.full_name' "$GITHUB_EVENT_PATH")
gh issue view "$issue_number" -R "$repo" --json number,title,body,labels,author,authorAssociation
gh issue view "$issue_number" -R "$repo" --json number,title,body,labels,author
```
If the issue body is empty or only whitespace, treat it as empty/spam and skip.