Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 04e54a3

Browse files
committedAug 7, 2018
cmd/gopherbot: change issue notification comment to include author name
1 parent 4639cd3 commit 04e54a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎cmd/gopherbot/gopherbot.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ func (b *gopherbot) closeStaleWaitingForInfo(ctx context.Context) error {
806806

807807
}
808808

809-
// cl2issue writes "Change https://golang.org/issue/NNNN mentions this issue"\
809+
// cl2issue writes "Change https://golang.org/issue/NNNN by 'author' mentions this issue"\
810810
// and the change summary on GitHub when a new Gerrit change references a GitHub issue.
811811
func (b *gopherbot) cl2issue(ctx context.Context) error {
812812
monthAgo := time.Now().Add(-30 * 24 * time.Hour)
@@ -841,7 +841,7 @@ func (b *gopherbot) cl2issue(ctx context.Context) error {
841841
})
842842
if !hasComment {
843843
printIssue("cl2issue", gi)
844-
msg := fmt.Sprintf("Change https://golang.org/cl/%d mentions this issue: `%s`", cl.Number, cl.Commit.Summary())
844+
msg := fmt.Sprintf("Change https://golang.org/cl/%d by @%s mentions this issue: `%s`", cl.Number, cl.Commit.Author, cl.Commit.Summary())
845845
if err := b.addGitHubComment(ctx, "golang", "go", gi.Number, msg); err != nil {
846846
return err
847847
}

0 commit comments

Comments
 (0)
Please sign in to comment.