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:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user