get type hint
Signed-off-by: Trim21 <trim21.me@gmail.com>
This commit is contained in:
parent
c8b97615be
commit
c8c17bf9ab
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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}`);
|
core.debug(`fetch commit ${sha} metadata from ${GitHub.context.repo.owner}/${GitHub.context.repo.repo}`);
|
||||||
|
|
||||||
// fallback to github api for commit date
|
// fallback to github api for commit date
|
||||||
const commit = await toolkit.github.octokit.request('GET /repos/{owner}/{repo}/commits/{commit_sha}', {
|
const commit = await toolkit.github.octokit.request('GET /repos/{owner}/{repo}/commits/{ref}', {
|
||||||
commit_sha: sha,
|
ref: sha,
|
||||||
owner: GitHub.context.repo.owner,
|
owner: GitHub.context.repo.owner,
|
||||||
repo: GitHub.context.repo.repo
|
repo: GitHub.context.repo.repo
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue