Skip to content

Commit

Permalink
fetch 100 deployment statuses per page
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki committed May 8, 2024
1 parent 733a296 commit 1bcdc27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runway/events/github_deployment.cr
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class GitHubDeployment < BaseEvent
# however, the "in_progress" status must be the most recent status for the deployment or we'll ignore it
deployments.each do |deployment|
deployment_id = deployment["id"].to_s.to_i
statuses = @github.list_deployment_statuses(@event.repo.not_nil!, deployment_id)
statuses = @github.list_deployment_statuses(@event.repo.not_nil!, deployment_id, per_page: 100)
statuses = JSON.parse(statuses.records.to_json).as_a

# sort statuses by created_at date with the most recent first
Expand Down

0 comments on commit 1bcdc27

Please sign in to comment.