Skip to content

Commit 320bba0

Browse files
committed
capture head_sha when parsing response
1 parent 68aff8d commit 320bba0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/github_api.cr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ struct WorkflowRun
257257
@[JSON::Field(converter: RFC3339Converter)]
258258
property updated_at : Time
259259
property repository : Repository
260+
property head_sha : String
260261

261262
def check_suite_id
262263
check_suite_url.rpartition("/").last.to_i64?

src/nightly_link.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ class NightlyLink
357357
end
358358
end
359359

360-
title = {"Repository #{repo_owner}/#{repo_name}", "Workflow #{workflow} | Branch #{branch} | Commit #{run.head_commit.id} | Timestamp #{run.updated_at}"}
360+
title = {"Repository #{repo_owner}/#{repo_name}", "Workflow #{workflow} | Branch #{branch} | Commit #{run.head_sha} | Timestamp #{run.updated_at}"}
361361
canonical = abs_url(NightlyLink.gen_dash_by_branch(
362362
repo_owner: repo_owner, repo_name: repo_name, workflow: workflow.rchop(".yml"), branch: branch
363363
))

0 commit comments

Comments
 (0)