Skip to content

Commit ee81bf2

Browse files
committed
Use --paginate to get all comments
1 parent 1cf2530 commit ee81bf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/qhelp-pr-preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
run: |
8686
# Find the latest comment starting with "QHelp previews"
8787
COMMENT_PREFIX="QHelp previews"
88-
gh api "repos/${{ github.repository }}/issues/${{ github.event.number }}/comments?per_page=100" --jq "[.[] | select(.body|startswith(\"${COMMENT_PREFIX}\")) | .id] | max" > comment_id.txt
88+
gh api "repos/${{ github.repository }}/issues/${{ github.event.number }}/comments" --paginate --jq "[.[] | select(.body|startswith(\"${COMMENT_PREFIX}\")) | .id] | max" > comment_id.txt
8989
env:
9090
GITHUB_TOKEN: ${{ github.token }}
9191

0 commit comments

Comments
 (0)