Skip to content

Commit

Permalink
Merge pull request #47 from dmcgowan/filter-bots
Browse files Browse the repository at this point in the history
  • Loading branch information
fuweid committed Feb 2, 2024
2 parents 4506a8a + 1c6d3ed commit 8bcb9d4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,12 @@ func addContributors(previous, commit string, contributors map[string]contributo
if len(p) != 2 {
return fmt.Errorf("unparsable git log output: %s", s.Text())
}
addContributor(contributors, p[1], p[0])
name := p[1]
if name == "bot" || strings.Contains(name, "[bot]") {
logrus.Debugf("Skipping bot contributor: %s <%s>", name, p[0])
continue
}
addContributor(contributors, name, p[0])
}
return s.Err()
}
Expand Down

0 comments on commit 8bcb9d4

Please sign in to comment.