Skip to content

Commit

Permalink
ignore [bot] named contributors
Browse files Browse the repository at this point in the history
  • Loading branch information
zeucapua committed Sep 18, 2024
1 parent 503b3bd commit 35ce9b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/generate/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"os"
"path/filepath"
"slices"
"strings"

tea "github.com/charmbracelet/bubbletea"
"github.com/go-git/go-git/v5"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 35ce9b1

Please sign in to comment.