Skip to content

Commit

Permalink
x/build/cmd: Change issue notification comment to include author name.
Browse files Browse the repository at this point in the history
  • Loading branch information
kzisme committed Aug 6, 2018
1 parent 4639cd3 commit ce4f6e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/gopherbot/gopherbot.go
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ func (b *gopherbot) closeStaleWaitingForInfo(ctx context.Context) error {

}

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

0 comments on commit ce4f6e1

Please sign in to comment.