Skip to content

Commit e008d53

Browse files
committed
cmd/gerritbot: reword message for when a Gerrit message is posted
Update golang/go#18517 Change-Id: Iccb7b5c61d8fc161b877d0a39f4ee1c523a4cd75 Reviewed-on: https://go-review.googlesource.com/93356 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 9f49e8c commit e008d53

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cmd/gerritbot/gerritbot.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,11 +390,15 @@ func (b *bot) processPullRequest(ctx context.Context, pr *github.PullRequest) er
390390
if m.Author.Email() == cl.Owner().Email() {
391391
continue
392392
}
393-
msg := fmt.Sprintf(`%s has posted review comments at [golang.org/cl/%d](https://go-review.googlesource.com/c/%s/+/%d#message-%s).
393+
msg := fmt.Sprintf(`Message from %s:
394394
395+
%s
396+
397+
---
398+
Please don’t reply on this GitHub thread. Visit [golang.org/cl/%d](https://go-review.googlesource.com/c/%s/+/%d#message-%s).
395399
After addressing review feedback, remember to
396400
[publish your drafts](https://github.com/golang/go/wiki/GerritBot#i-left-a-reply-to-a-comment-in-gerrit-but-no-one-but-me-can-see-it)!`,
397-
m.Author.Name(), cl.Number, cl.Project.Project(), cl.Number, m.Meta.Hash.String())
401+
m.Author.Name(), m.Message, cl.Number, cl.Project.Project(), cl.Number, m.Meta.Hash.String())
398402
b.postGitHubMessageNoDup(ctx, repo.GetOwner().GetLogin(), repo.GetName(), pr.GetNumber(), msg)
399403
}
400404

0 commit comments

Comments
 (0)