Skip to content

Commit

Permalink
ci: count closed PRs when determining the default PR number
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikołaj Świątek committed Feb 27, 2023
1 parent dce3e4c commit d4ff3b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/add-changelog-entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function get_default_pr_number() {
fi

local latest_pr_number
latest_pr_number=$(curl -s "https://api.github.com/repos/SumoLogic/sumologic-kubernetes-collection/issues?per_page=1" | jq '.[0].number')
latest_pr_number=$(curl -s "https://api.github.com/repos/SumoLogic/sumologic-kubernetes-collection/issues?state=all&per_page=1" | jq '.[0].number')
echo "$((latest_pr_number + 1))"
}

Expand Down

0 comments on commit d4ff3b1

Please sign in to comment.