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

Function checkoutNewBranch

github/index.ts:684–689  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

682}
683
684async function checkoutNewBranch() {
685 console.log("Checking out new branch...")
686 const branch = generateBranchName("issue")
687 await $`git checkout -b ${branch}`
688 return branch
689}
690
691async function checkoutLocalBranch(pr: GitHubPullRequest) {
692 console.log("Checking out local branch...")

Callers 1

index.tsFile · 0.70

Calls 2

generateBranchNameFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected