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

Function checkoutNewBranch

packages/opencode/src/cli/cmd/github.handler.ts:1040–1045  ·  view source on GitHub ↗
(type: "issue" | "schedule" | "dispatch")

Source from the content-addressed store, hash-verified

1038 }
1039
1040 async function checkoutNewBranch(type: "issue" | "schedule" | "dispatch") {
1041 console.log("Checking out new branch...")
1042 const branch = generateBranchName(type)
1043 await gitRun(["checkout", "-b", branch])
1044 return branch
1045 }
1046
1047 async function checkoutLocalBranch(pr: GitHubPullRequest) {
1048 console.log("Checking out local branch...")

Callers 1

github.handler.tsFile · 0.70

Calls 3

gitRunFunction · 0.85
generateBranchNameFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected