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:
gastown/polecats/valkyrie
2025-12-30 22:33:17 -08:00
committed by Steve Yegge
parent 375f215f56
commit 39b3b150bd

View File

@@ -161,6 +161,13 @@ func runConvoyCreate(cmd *cobra.Command, args []string) error {
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
description := fmt.Sprintf("Convoy tracking %d issues", len(trackedIssues))
if convoyNotify != "" {