Skip to content

Commit

Permalink
cmd/gerritbot: reword message for when a Gerrit message is posted
Browse files Browse the repository at this point in the history
Update golang/go#18517

Change-Id: Iccb7b5c61d8fc161b877d0a39f4ee1c523a4cd75
Reviewed-on: https://go-review.googlesource.com/93356
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
andybons committed Feb 12, 2018
1 parent 9f49e8c commit e008d53
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmd/gerritbot/gerritbot.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,15 @@ func (b *bot) processPullRequest(ctx context.Context, pr *github.PullRequest) er
if m.Author.Email() == cl.Owner().Email() {
continue
}
msg := fmt.Sprintf(`%s has posted review comments at [golang.org/cl/%d](https://go-review.googlesource.com/c/%s/+/%d#message-%s).
msg := fmt.Sprintf(`Message from %s:
%s
---
Please don’t reply on this GitHub thread. Visit [golang.org/cl/%d](https://go-review.googlesource.com/c/%s/+/%d#message-%s).
After addressing review feedback, remember to
[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)!`,
m.Author.Name(), cl.Number, cl.Project.Project(), cl.Number, m.Meta.Hash.String())
m.Author.Name(), m.Message, cl.Number, cl.Project.Project(), cl.Number, m.Meta.Hash.String())
b.postGitHubMessageNoDup(ctx, repo.GetOwner().GetLogin(), repo.GetName(), pr.GetNumber(), msg)
}

Expand Down

0 comments on commit e008d53

Please sign in to comment.