diff --git a/modules/github-bots/sdk/github.go b/modules/github-bots/sdk/github.go index 584d6790..4a059f4c 100644 --- a/modules/github-bots/sdk/github.go +++ b/modules/github-bots/sdk/github.go @@ -220,7 +220,8 @@ func (c GitHubClient) SetComment(ctx context.Context, pr *github.PullRequest, bo } // AddComment adds a new comment to the given pull request. -func (c GitHubClient) AddComment(ctx context.Context, pr *github.PullRequest, content string) error { +func (c GitHubClient) AddComment(ctx context.Context, pr *github.PullRequest, botName, content string) error { + content = fmt.Sprintf("\n\n%s", botName, content) if _, resp, err := c.inner.Issues.CreateComment(ctx, *pr.Base.Repo.Owner.Login, *pr.Base.Repo.Name, *pr.Number, &github.IssueComment{ Body: &content, }); err != nil || resp.StatusCode != 201 {