ci: commit as Zach Kelling, Hanzo Dev as co-author

Release and bump commits were authored by the automation address, so the work never reached the owner's contribution graph.

Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
2026-09-10 14:05:46 -07:00
co-authored by Hanzo Dev
parent 94731388af
commit 5acd2b010a
+3 -3
View File
@@ -396,15 +396,15 @@ jobs:
git clone --depth 1 "https://x-access-token:[email protected]/hanzoai/homebrew-tap.git" "$tap"
mkdir -p "$tap/Formula" && cp Formula/hanzo-dev.rb "$tap/Formula/hanzo-dev.rb"
cd "$tap"
git -c user.name=hanzo-dev -c [email protected] commit -qam "hanzo-dev $V" && git push -q || echo "formula unchanged"
git -c user.name="Zach Kelling" -c user.email=[email protected] commit --trailer "Co-authored-by: Hanzo Dev <[email protected]>" -qam "hanzo-dev $V" && git push -q || echo "formula unchanged"
- name: Bump
env:
GIT_TOKEN: ${{ github.token }}
run: |
set -euo pipefail
git add npm/package.json npm/package-lock.json Formula/hanzo-dev.rb 2>/dev/null || true
git -c user.name=hanzo-dev -c [email protected] commit -qm "chore(release): $V [skip ci]"
git -c user.name="Zach Kelling" -c user.email=[email protected] commit --trailer "Co-authored-by: Hanzo Dev <[email protected]>" -qm "chore(release): $V [skip ci]"
push() { git push "$1" HEAD:main && return
git fetch "$1" main && git -c user.name=hanzo-dev -c user.email=[email protected] rebase FETCH_HEAD && git push "$1" HEAD:main; }
git fetch "$1" main && git -c user.name="Zach Kelling" -c user.email=[email protected] rebase FETCH_HEAD && git push "$1" HEAD:main; }
push "https://x-access-token:[email protected]/hanzoai/dev.git"
[ -z "${GIT_TOKEN:-}" ] || push "https://x:[email protected]/hanzoai/dev.git" || true