Skip to content

Commit e1903fc

Browse files
committed
Fix changelog script
Signed-off-by: Riddhesh Sanghvi <[email protected]>
1 parent c989acd commit e1903fc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ profiles_settings.xml
2020
Project_Default.xml
2121
.idea
2222
ee_release
23+
changelog.txt

utils/changelog.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@ echo "## What's Changed" > changelog.txt
55
createdAt=$(gh api graphql -F owner='EasyEngine' -F name='easyengine' -f query='
66
query {
77
repository(owner: "EasyEngine", name: "easyengine") {
8-
releases(last: 1) {
8+
releases(first: 1, orderBy: { field: CREATED_AT, direction: DESC }) {
99
nodes { tagName, createdAt }
1010
}
1111
}
1212
}
1313
' | jq -r '.data.repository.releases.nodes[0].createdAt')
14+
1415
gh api graphql --paginate -f query="
1516
query {
16-
search(query: \"org:Easyengine updated:>$createdAt state:closed is:pr\", type:ISSUE,first: 100) {
17+
search(query: \"org:Easyengine updated:>$createdAt state:closed is:pr\", type:ISSUE, first: 100) {
1718
repositoryCount
1819
edges {
1920
node {

0 commit comments

Comments
 (0)