get type hint

Signed-off-by: Trim21 <trim21.me@gmail.com>
This commit is contained in:
Trim21 2024-11-20 00:25:49 +08:00
parent c8b97615be
commit c8c17bf9ab
No known key found for this signature in database
GPG Key ID: 809F01CFB0A797FB
3 changed files with 4 additions and 4 deletions

2
dist/index.js generated vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -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
});