Skip to content

Commit e6eed2d

Browse files
authored
Merge pull request #54 from runwaylab/deployment-id-fixes
Deployment id fixes
2 parents 1fcade5 + 2408ee5 commit e6eed2d

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

acceptance/logs/expected.log

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ INFO: 📖 loading runway configuration
33
DEBUG: attempting to load config from acceptance/config/config.yml
44
INFO: ✅ loaded configuration successfully
55
INFO: 🚚 2 projects loaded
6-
INFO: 🛫 starting runway - version: v0.5.1
6+
INFO: 🛫 starting runway - version: v0.5.2
77
INFO: 📦 starting project project-1
88
INFO: 🕐 scheduling event with interval 3s for project-1
99
INFO: 📦 starting project project-2

shard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: runway
2-
version: 0.5.0
2+
version: 0.5.2
33

44
authors:
55
- GrantBirki

src/runway/events/github_deployment.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class GitHubDeployment < BaseEvent
157157
# the first deployment to have an "in_progress" status will be the one we're looking for
158158
# however, the "in_progress" status must be the most recent status for the deployment or we'll ignore it
159159
deployments.each do |deployment|
160-
deployment_id = deployment.id.to_i32
160+
deployment_id = deployment.id
161161
statuses = @github.list_deployment_statuses(@event.repo.not_nil!, deployment_id, per_page: 100)
162162
statuses = statuses.records
163163

src/runway/services/github.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module Runway
2323
end
2424
end
2525

26-
def list_deployment_statuses(repo : String, deployment_id : Int32, per_page : Int32 = 30) : Octokit::Connection::Paginator(Octokit::Models::DeploymentStatus)
26+
def list_deployment_statuses(repo : String, deployment_id : Int64, per_page : Int32 = 30) : Octokit::Connection::Paginator(Octokit::Models::DeploymentStatus)
2727
Retriable.retry do
2828
check_rate_limit!
2929
@client.list_deployment_statuses(repo, deployment_id, per_page: per_page)

src/version.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Runway
2-
VERSION = "v0.5.1"
2+
VERSION = "v0.5.2"
33
end

0 commit comments

Comments
 (0)