From 613e7fc1a7260d867c1373f687fdc744d9fd9853 Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Sat, 26 Jul 2025 00:17:41 -0700 Subject: [PATCH] feat: add commit hash in joj3-forge-convert --- bin/joj3-forge-convert | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/joj3-forge-convert b/bin/joj3-forge-convert index 6034be0..9241e31 100755 --- a/bin/joj3-forge-convert +++ b/bin/joj3-forge-convert @@ -57,7 +57,8 @@ EOF rsync -a --delete "/home/tt/.config/joj/" "$config_repo_path/home/tt/.config/joj" git -C "$config_repo_path" add home/tt/.config/joj if ! git -C "$config_repo_path" diff --staged --quiet; then - git -C "$config_repo_path" commit -m "chore: joj3-forge convert [skip ci]" + commit_hash=$(git rev-parse HEAD) + git -C "$config_repo_path" commit -m "chore: $commit_hash trigger joj3-forge convert [skip ci]" git -C "$config_repo_path" push fi if [ -n "${TEAPOT_GITEA_TOKEN:-}" ]; then