Skip to content

Commit

Permalink
Trim '[bot]' suffix from botIdentity (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvarts authored Nov 15, 2024
1 parent 232cc52 commit 8ded097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/githubapi/github_graphql.go
Original file line number Diff line number Diff line change
@@ -68,7 +68,7 @@ func MimizeStalePrComments(ghPrClientDetails GhPrClientDetails, githubGraphQlCli
if err != nil {
ghPrClientDetails.PrLogger.Errorf("Failed to minimize stale comments: err=%s\n", err)
}
bi := githubv4.String(botIdentity)
bi := githubv4.String(strings.TrimSuffix(botIdentity, "[bot]"))
for _, prComment := range getCommentNodeIdsQuery.Repository.PullRequest.Comments.Edges {
if !prComment.Node.IsMinimized && prComment.Node.Author.Login == bi {
if strings.Contains(string(prComment.Node.Body), "<!-- telefonistka_tag -->") {

0 comments on commit 8ded097

Please sign in to comment.