Skip to content

Commit

Permalink
get type hint
Browse files Browse the repository at this point in the history
Signed-off-by: Trim21 <trim21.me@gmail.com>
  • Loading branch information
trim21 committed Nov 19, 2024
1 parent c8b9761 commit c8c17bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ async function getCommitDateFromWorkflow(sha: string, toolkit: Toolkit): Promise
core.debug(`fetch commit ${sha} metadata from ${GitHub.context.repo.owner}/${GitHub.context.repo.repo}`);

// fallback to github api for commit date
const commit = await toolkit.github.octokit.request('GET /repos/{owner}/{repo}/commits/{commit_sha}', {
commit_sha: sha,
const commit = await toolkit.github.octokit.request('GET /repos/{owner}/{repo}/commits/{ref}', {
ref: sha,
owner: GitHub.context.repo.owner,
repo: GitHub.context.repo.repo
});
Expand Down

0 comments on commit c8c17bf

Please sign in to comment.