From 35ce9b1417bd44a38992ff978c63430976bac5e4 Mon Sep 17 00:00:00 2001 From: Zeu Capua Date: Wed, 18 Sep 2024 09:28:28 -0700 Subject: [PATCH] ignore [bot] named contributors --- cmd/generate/config/config.go | 5 +++++ 1 file changed, 5 insertions(+) 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 {