fix(agentic): update auto_pr.go to use exported DefaultBranch

Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
Snider 2026-03-22 03:43:17 +00:00
parent deaa06a54d
commit 0f0764ff59

View file

@ -22,7 +22,7 @@ func (s *PrepSubsystem) autoCreatePR(wsDir string) {
srcDir := filepath.Join(wsDir, "src")
// Detect default branch for this repo
base := gitDefaultBranch(srcDir)
base := DefaultBranch(srcDir)
// Check if there are commits on the branch beyond the default branch
diffCmd := exec.Command("git", "log", "--oneline", "origin/"+base+"..HEAD")