(type: "issue" | "pr")
| 711 | } |
| 712 | |
| 713 | function 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 | |
| 723 | async function pushToNewBranch(summary: string, branch: string) { |
| 724 | console.log("Pushing to new branch...") |
no test coverage detected