feat: Add configurable polecat branch naming (#825)

feat: Add configurable polecat branch naming

Adds polecat_branch_template configuration for custom branch naming patterns.

Template variables supported:
- {user}: git config user.name  
- {year}/{month}: date (YY/MM format)
- {name}: polecat name
- {issue}: issue ID without prefix
- {description}: sanitized issue title
- {timestamp}: unique timestamp

Maintains backward compatibility - empty template uses existing format.
This commit is contained in:
Adam Zionts
2026-01-21 20:53:12 -08:00
committed by GitHub
parent 0dfb0be368
commit 02390251fc
7 changed files with 353 additions and 37 deletions

View File

@@ -31,11 +31,12 @@ type ConfigResult struct {
// SystemDefaults contains compiled-in default values.
// These are the fallback when no other layer provides a value.
var SystemDefaults = map[string]interface{}{
"status": "operational",
"auto_restart": true,
"max_polecats": 10,
"priority_adjustment": 0,
"dnd": false,
"status": "operational",
"auto_restart": true,
"max_polecats": 10,
"priority_adjustment": 0,
"dnd": false,
"polecat_branch_template": "", // Empty = use default behavior (polecat/{name}/...)
}
// StackingKeys defines which keys use stacking semantics (values add up).