File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,3 +87,6 @@ different repo, the default token will need to be overridden.
8787 repository: other-org/other-repository
8888 token: ${{ steps.get-token.outputs.token }}
8989```
90+
91+ ## TODO
92+ - add pagination iteration / merging routing
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ runs:
165165 PULL_REQUEST=${PULL_REQUEST:-${{ github.event.number }}}
166166 if [ -z "$PULL_REQUEST" ] ; then
167167 API_OUTPUT=$(mktemp)
168- gh_api 'get-pr-associated-with-commit' GET "/repos/${REPOSITORY}/commits/${SHA}/pulls" '' "$API_OUTPUT"
168+ gh_api 'get-pr-associated-with-commit' GET "/repos/${REPOSITORY}/commits/${SHA}/pulls?per_page=100 " '' "$API_OUTPUT"
169169 PULL_REQUEST=$(jq first.number "$API_OUTPUT")
170170 if [ -z "$PULL_REQUEST" ] ; then
171171 if [ "$QUIET" = 'true' ] || [ "$ERROR_ON_MISSING_PR" != 'true' ] ; then
@@ -191,7 +191,7 @@ runs:
191191 "explicitly via repository input."
192192 exit 1
193193 else
194- gh_api 'get-existing-comments' GET "/repos/${REPOSITORY}/issues/${PULL_REQUEST}/comments" '' "$ALL_COMMENTS"
194+ gh_api 'get-existing-comments' GET "/repos/${REPOSITORY}/issues/${PULL_REQUEST}/comments?per_page=100 " '' "$ALL_COMMENTS"
195195 fi
196196
197197 if [ "$ACTIONS_RUNNER_DEBUG" == 'true' ] ; then echo ::group::all_comments.json
@@ -285,7 +285,7 @@ runs:
285285 ;;
286286 get)
287287 ID=$(jq --arg index "$x" -r '.[$index | tonumber].id' "$COMMENTS")
288- gh_api "$OPERATION" GET "repos/${REPOSITORY}/issues/comments/${ID}" "$COMMENT"
288+ gh_api "$OPERATION" GET "repos/${REPOSITORY}/issues/comments/${ID}?per_page=100 " "$COMMENT"
289289 ;;
290290 minimize)
291291 NODE_ID=$(jq --arg index "$x" -r '.[$index | tonumber].node_id' "$COMMENTS")
You can’t perform that action at this time.
0 commit comments