gt convoy create: Default --notify to mayor/
When Mayor creates a convoy, automatically default --notify to 'mayor/' since the Mayor dispatched the work and should be notified when it lands. This reduces flag boilerplate for the common case. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
committed by
Steve Yegge
parent
375f215f56
commit
39b3b150bd
@@ -161,6 +161,13 @@ func runConvoyCreate(cmd *cobra.Command, args []string) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Default --notify to mayor/ when mayor creates a convoy
|
||||||
|
if convoyNotify == "" {
|
||||||
|
if roleInfo, err := GetRole(); err == nil && roleInfo.Role == RoleMayor {
|
||||||
|
convoyNotify = "mayor/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Create convoy issue in town beads
|
// Create convoy issue in town beads
|
||||||
description := fmt.Sprintf("Convoy tracking %d issues", len(trackedIssues))
|
description := fmt.Sprintf("Convoy tracking %d issues", len(trackedIssues))
|
||||||
if convoyNotify != "" {
|
if convoyNotify != "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user