mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
chore: fix gh command in workflow
This commit is contained in:
@@ -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"
|
||||
```
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user