Skip to content

Commit

Permalink
fix: exclude "github-actions" from comments
Browse files Browse the repository at this point in the history
If that bot wants to tell us something, it will also block the PR
properly. At workplace, this bot just informs about test coverage and
other stuff, which isn't interesting when determining if the PR author
needs to pay attention to incoming information.
  • Loading branch information
chelmertz committed Nov 21, 2024
1 parent 4729937 commit 752cbd7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ func QueryGithub(token string, username string, logger *slog.Logger) ([]types.Vi

lastPrCommenter := ""
for _, c := range pr.Comments.Edges {
if c.Node.Author.Login == "github-actions" {
continue
}
lastPrCommenter = c.Node.Author.Login
}

Expand Down

0 comments on commit 752cbd7

Please sign in to comment.