From 03e7207cda08ca7e632db21defd24fd0797abfa0 Mon Sep 17 00:00:00 2001 From: harpsealjs Date: Fri, 13 Sep 2024 12:27:57 +0800 Subject: [PATCH] feat: add commit hash (#54) --- utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/utils.ts b/utils.ts index 1cb9278..091de56 100644 --- a/utils.ts +++ b/utils.ts @@ -144,6 +144,7 @@ export async function setupRepo(options: RepoOptions) { if (tag || commit) { await $`git reset --hard ${tag || commit}` } + await $`git log -1 --format='%H'` } }