Skip to content

Commit 43ab0b1

Browse files
committed
Increase PR files API page size in deploy workflow
Appends '?per_page=100' to the PR files API request URL to ensure up to 100 changed files are retrieved per page, improving support for large pull requests.
1 parent f6c50a6 commit 43ab0b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/deploy-plugin-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
$response = Invoke-RestMethod -Uri $url -Headers @{Authorization = "token ${{ secrets.GITHUB_TOKEN }}" }
2323
2424
# Get changed files in the PR
25-
$filesUrl = $response.url + "/files"
25+
$filesUrl = $response.url + "/files?per_page=100"
2626
$files = Invoke-RestMethod -Uri $filesUrl -Headers @{Authorization = "token ${{ secrets.GITHUB_TOKEN }}" }
2727
2828
Write-Output "Total files changed: $($files.Count)"

0 commit comments

Comments
 (0)