Skip to content

Commit 3478ddf

Browse files
authored
[FLINK-38484][ci] Avoid long command line error in community review script
1 parent c9773f4 commit 3478ddf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/community-review.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ main() {
116116
receivedPullRequests=$(jq '[.[] | select((.node.isDraft = false))]' <<< "$receivedPullRequests")
117117
printf " %2s PR retained" "$(JSONArrayLength "$receivedPullRequests")"
118118

119-
pullRequests=$(jq --argjson a1 "$pullRequests" --argjson a2 "$receivedPullRequests" '$a1 + $a2' <<< '{}')
119+
# the below line is coded so as to avoid command-line argument limits.
120+
pullRequests=$(jq -s '.[0] + .[1]' <(echo "$pullRequests") <(echo "$receivedPullRequests"))
120121

121122
hasNextPage=$(jq '.data.repository.pullRequests.pageInfo.hasNextPage' <<< "$restResponse")
122123
cursor=$(jq -r '.data.repository.pullRequests.pageInfo.endCursor' <<< "$restResponse")

0 commit comments

Comments
 (0)