From e1903fcb1e64fc6b7365691fbd61efa003cce7ce Mon Sep 17 00:00:00 2001 From: Riddhesh Sanghvi Date: Tue, 8 Oct 2024 20:08:50 +0530 Subject: [PATCH] Fix changelog script Signed-off-by: Riddhesh Sanghvi --- .gitignore | 1 + utils/changelog.sh | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 1b29f3c5b..269eb2159 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ profiles_settings.xml Project_Default.xml .idea ee_release +changelog.txt diff --git a/utils/changelog.sh b/utils/changelog.sh index 4ca0e70bb..b7d342537 100644 --- a/utils/changelog.sh +++ b/utils/changelog.sh @@ -5,15 +5,16 @@ echo "## What's Changed" > changelog.txt createdAt=$(gh api graphql -F owner='EasyEngine' -F name='easyengine' -f query=' query { repository(owner: "EasyEngine", name: "easyengine") { - releases(last: 1) { + releases(first: 1, orderBy: { field: CREATED_AT, direction: DESC }) { nodes { tagName, createdAt } } } } ' | jq -r '.data.repository.releases.nodes[0].createdAt') + gh api graphql --paginate -f query=" query { - search(query: \"org:Easyengine updated:>$createdAt state:closed is:pr\", type:ISSUE,first: 100) { + search(query: \"org:Easyengine updated:>$createdAt state:closed is:pr\", type:ISSUE, first: 100) { repositoryCount edges { node {