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

Function pushToLocalBranch

github/index.ts:735–745  ·  view source on GitHub ↗
(summary: string)

Source from the content-addressed store, hash-verified

733}
734
735async function pushToLocalBranch(summary: string) {
736 console.log("Pushing to local branch...")
737 const actor = useContext().actor
738
739 await assertGitIdentityConfigured()
740 await $`git add .`
741 await $`git commit -m "${summary}
742
743Co-authored-by: ${actor} <${actor}@users.noreply.github.com>"`
744 await $`git push`
745}
746
747async function pushToForkBranch(summary: string, pr: GitHubPullRequest) {
748 console.log("Pushing to fork branch...")

Callers 1

index.tsFile · 0.70

Calls 3

useContextFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected