diff --git a/.github/workflows/github_release.yml b/.github/workflows/github_release.yml index ec1c0df469..4d38305dfc 100644 --- a/.github/workflows/github_release.yml +++ b/.github/workflows/github_release.yml @@ -79,14 +79,11 @@ jobs: START: v${{ steps.version.outputs.current_release }}-rc0 END: ${{ github.ref_name }} run: | - JQ_EXPR='[.commits[].author.login] - | map(select(. != null and . != "HaystackBot" and . != "dependabot[bot]" and . != "github-actions[bot]")) - | unique - | sort_by(ascii_downcase) - | map("@\(.)") - | join(", ")' - CONTRIBUTORS=$(gh api "repos/deepset-ai/haystack/compare/$START...$END" \ - --jq "$JQ_EXPR") || { echo "Unable to fetch contributors"; exit 1; } + # --paginate applies --jq per page, so dedupe and join after collecting all pages + CONTRIBUTORS=$(set -o pipefail; gh api --paginate "repos/deepset-ai/haystack/compare/$START...$END?per_page=100" \ + --jq '.commits[].author.login | select(. != null)' \ + | grep -vxE 'HaystackBot|dependabot\[bot\]|github-actions\[bot\]' \ + | sort -fu | sed 's/^/@/' | paste -sd, - | sed 's/,/, /g') || { echo "Unable to fetch contributors"; exit 1; } { echo ""