From e892090e164e65d5e3762ce798c888d9c26c9216 Mon Sep 17 00:00:00 2001 From: i-ky Date: Tue, 1 Aug 2023 16:00:48 +0300 Subject: [PATCH] Avoid bloating previous author's contribution stats Otherwise GitHub counts each force-push of an amended commit as a contribution by the original author, which may lead to hundreds and thousands of "fake" contributions provided that action typically runs multiple times a day. --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index b26bd0fc601014..b5a77bba29be8c 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -116,7 +116,7 @@ git config --global user.name "Archive Bot" git add -A if [[ "$delete_history" == "true" ]] then - git commit --amend -m "Update archive." + git commit --amend --reset-author -m "Update archive." # Cleanup loose objects git gc else