From 157ad74d6554475ccb24660e7e705766004f9a64 Mon Sep 17 00:00:00 2001 From: Juanjo Presa Date: Fri, 18 Oct 2024 02:53:17 +0200 Subject: [PATCH] Update _postDiffToGitHubSnippet.nix --- src/std/fwlib/blockTypes/_postDiffToGitHubSnippet.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/std/fwlib/blockTypes/_postDiffToGitHubSnippet.nix b/src/std/fwlib/blockTypes/_postDiffToGitHubSnippet.nix index 7f7d44d4..036a4f8e 100644 --- a/src/std/fwlib/blockTypes/_postDiffToGitHubSnippet.nix +++ b/src/std/fwlib/blockTypes/_postDiffToGitHubSnippet.nix @@ -34,7 +34,7 @@ EOF PR_NUMBER=$(gh pr view "$BRANCH" --repo "$OWNER_REPO_NAME" --json number --jq '.number') - EXISTING_COMMENT_ID=$(gh api "repos/$OWNER_REPO_NAME/issues/$PR_NUMBER/comments" --jq ".[] | select(.body | contains(\"$CENTRAL_COMMENT_HEADER\")) | .id" | head -n 1) + EXISTING_COMMENT_ID=$(gh api "repos/$OWNER_REPO_NAME/issues/$PR_NUMBER/comments?per_page=100" --jq ".[] | select(.body | contains(\"$CENTRAL_COMMENT_HEADER\")) | .id" | head -n 1) if [[ -n "$EXISTING_COMMENT_ID" ]]; then EXISTING_BODY=$(gh api "repos/$OWNER_REPO_NAME/issues/comments/$EXISTING_COMMENT_ID" --jq '.body')