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

Function generateBranchName

github/index.ts:713–721  ·  view source on GitHub ↗
(type: "issue" | "pr")

Source from the content-addressed store, hash-verified

711}
712
713function generateBranchName(type: "issue" | "pr") {
714 const timestamp = new Date()
715 .toISOString()
716 .replace(/[:-]/g, "")
717 .replace(/\.\d{3}Z/, "")
718 .split("T")
719 .join("")
720 return `opencode/${type}${useIssueId()}-${timestamp}`
721}
722
723async function pushToNewBranch(summary: string, branch: string) {
724 console.log("Pushing to new branch...")

Callers 2

checkoutNewBranchFunction · 0.70
checkoutForkBranchFunction · 0.70

Calls 1

useIssueIdFunction · 0.85

Tested by

no test coverage detected