MCPcopy Index your code
hub / github.com/anomalyco/opencode / pushToLocalBranch

Function pushToLocalBranch

packages/opencode/src/cli/cmd/github.handler.ts:1097–1104  ·  view source on GitHub ↗
(summary: string, commit: boolean)

Source from the content-addressed store, hash-verified

1095 }
1096
1097 async function pushToLocalBranch(summary: string, commit: boolean) {
1098 console.log("Pushing to local branch...")
1099 if (commit) {
1100 await gitRun(["add", "."])
1101 await commitChanges(summary, actor)
1102 }
1103 await gitRun(["push"])
1104 }
1105
1106 async function pushToForkBranch(summary: string, pr: GitHubPullRequest, commit: boolean) {
1107 console.log("Pushing to fork branch...")

Callers 1

github.handler.tsFile · 0.70

Calls 3

gitRunFunction · 0.85
commitChangesFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected