Skip to content

Set limit for gh pr list to 100 to avoid cherrypick limit #5666

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/cherry_pick.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
run: |
git config user.name "pipecd-bot"
git config user.email "[email protected]"
./hack/cherry-pick.sh -q ${{ inputs.releaseBranch }} $(gh pr list --label cherry-pick --label ${{ inputs.version }} --state merged | awk '{print $1}' | sort | paste -sd ' ' -)
#
# --limit 100 is to avoid the case where the number of PRs which included in a patch exceeds the default limit (30)
# if the number of PRs exceeds 100, the cherry-pick command will fail
#
./hack/cherry-pick.sh -q ${{ inputs.releaseBranch }} $(gh pr list --label cherry-pick --label ${{ inputs.version }} --state merged --limit 100 | awk '{print $1}' | sort | paste -sd ' ' -)
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}