Skip to content

Commit

Permalink
cmd/gerritbot: remind people to publish their draft comments
Browse files Browse the repository at this point in the history
Update golang/go#18517

Change-Id: Ia970d648b85cd75831ee0c6969762752e9b49289
Reviewed-on: https://go-review.googlesource.com/93355
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
andybons committed Feb 12, 2018
1 parent b6e015d commit 9f49e8c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/gerritbot/gerritbot.go
Expand Up @@ -390,7 +390,10 @@ 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(`%s has posted review comments at [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())
b.postGitHubMessageNoDup(ctx, repo.GetOwner().GetLogin(), repo.GetName(), pr.GetNumber(), msg)
}
Expand Down

0 comments on commit 9f49e8c

Please sign in to comment.