agentgh: add clone and setup for app-attributed pushes #31

Merged
benvin merged 2 commits from benvin/agentgh-clone into main 2026-11-22 16:50:10 +11:00
Member

Pushes from agent GitHub clones go out as the user account: a global insteadOf/pushInsteadOf rewrites github.com URLs to SSH, and inherited github.com credential helpers answer before the app's.

  • add agentgh clone <owner/repo> [dir] [--branch b] and agentgh setup [dir]
  • pin remote.origin.pushurl and add an identity url.<origin>.insteadOf rule so fetch/push stay https
  • reset the github.com helper chain to agentgh --app <app> credential (bare name when on PATH, else quoted path)
  • set the commit identity to the app bot noreply email
  • export agent.Git for running git from cmd packages
Pushes from agent GitHub clones go out as the user account: a global `insteadOf`/`pushInsteadOf` rewrites github.com URLs to SSH, and inherited github.com credential helpers answer before the app's. - add `agentgh clone <owner/repo> [dir] [--branch b]` and `agentgh setup [dir]` - pin `remote.origin.pushurl` and add an identity `url.<origin>.insteadOf` rule so fetch/push stay https - reset the github.com helper chain to `agentgh --app <app> credential` (bare name when on PATH, else quoted path) - set the commit identity to the app bot noreply email - export `agent.Git` for running git from cmd packages
unkin-agent added 1 commit 2026-11-21 23:44:21 +11:00
agentgh: add clone and setup to push github.com clones as the app
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
6c6044c6a0
unkin-agent added 1 commit 2026-11-21 23:47:56 +11:00
agentgh: pin origin URLs against insteadOf and bake a stable quoted helper
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
2faf4eff59
benvin merged commit 85c80493ac into main 2026-11-22 16:50:10 +11:00
benvin deleted branch benvin/agentgh-clone 2026-11-22 16:50:11 +11:00
Sign in to join this conversation.