Skip to content

Commit

Permalink
fix: use commit hash for head ref
Browse files Browse the repository at this point in the history
  • Loading branch information
maximousblk authored Feb 19, 2021
1 parent 0d9d5b2 commit a75fc58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ export async function getCommits(
? await getTagCommit(owner, repo, baseRef)
: await getOldestCommit(owner, repo);

const headCommit: string = head
const headCommit: string = head && isCommitHash(head)
? head
: head
? await getTagCommit(owner, repo, head)
: await getNewestCommit(owner, repo);

Expand Down

0 comments on commit a75fc58

Please sign in to comment.