Skip to content

Commit d98ec97

Browse files
committed
improve branch name entropy
1 parent 913e4d6 commit d98ec97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

github/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,8 @@ function generateBranchName(type: "issue" | "pr" | "schedule") {
720720
.split("T")
721721
.join("")
722722
if (type === "schedule") {
723-
return `opencode/scheduled-${timestamp}`
723+
const hex = crypto.randomUUID().slice(0, 6)
724+
return `opencode/scheduled-${hex}-${timestamp}`
724725
}
725726
return `opencode/${type}${useIssueId()}-${timestamp}`
726727
}

0 commit comments

Comments
 (0)