MCPcopy Create free account
hub / github.com/anomalyco/opencode / pushToNewBranch

Function pushToNewBranch

github/index.ts:723–733  ·  view source on GitHub ↗
(summary: string, branch: string)

Source from the content-addressed store, hash-verified

721}
722
723async function pushToNewBranch(summary: string, branch: string) {
724 console.log("Pushing to new branch...")
725 const actor = useContext().actor
726
727 await assertGitIdentityConfigured()
728 await $`git add .`
729 await $`git commit -m "${summary}
730
731Co-authored-by: ${actor} <${actor}@users.noreply.github.com>"`
732 await $`git push -u origin ${branch}`
733}
734
735async function pushToLocalBranch(summary: string) {
736 console.log("Pushing to local branch...")

Callers 1

index.tsFile · 0.70

Calls 3

useContextFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected