diff --git a/cmd/generate/config/config.go b/cmd/generate/config/config.go index bc39df4..a7f859a 100644 --- a/cmd/generate/config/config.go +++ b/cmd/generate/config/config.go @@ -6,6 +6,7 @@ import ( "os" "path/filepath" "slices" + "strings" tea "github.com/charmbracelet/bubbletea" "github.com/go-git/go-git/v5" @@ -109,6 +110,10 @@ func run(opts *Options) error { name := c.Author.Name email := c.Author.Email + if strings.Contains(name, "[bot]") { + return nil + } + if opts.ttyDisabled || !opts.isInteractive { doesEmailExist := slices.Contains(attributionMap[name], email) if !doesEmailExist {