Skip to content

Commit

Permalink
actions: Bump limit of listed PRs
Browse files Browse the repository at this point in the history
By default `gh pr list` limits output to 30 found PRs.
`--jq` expressions  filters JSON output, not PRs, which means it
is evaluated after PRs number is reduced by `--limit` .

Signed-off-by: Jan Gałda <[email protected]>
  • Loading branch information
jangalda-nsc committed Jan 14, 2025
1 parent f38d311 commit c361c8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/enforce-toolchain-synchronization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
if: env.modified == 'true'
id: find_prs
run: |
PRs=$(gh pr list --base ${{ github.ref_name }} --state open --json url,headRefName,files --jq '[.[] | select(.files[]? | .path as $file | [$file] | inside([env.TOOLCHAIN_FILES]))]')
PRs=$(gh pr list --limit 500 --base ${{ github.ref_name }} --state open --json url,headRefName,files --jq '[.[] | select(.files[]? | .path as $file | [$file] | inside([env.TOOLCHAIN_FILES]))]')
echo "Found PRs: $PRs"
echo "prs=$PRs" >> $GITHUB_ENV
env:
Expand Down

0 comments on commit c361c8a

Please sign in to comment.