@@ -806,7 +806,7 @@ func (b *gopherbot) closeStaleWaitingForInfo(ctx context.Context) error {
806
806
807
807
}
808
808
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"\
810
810
// and the change summary on GitHub when a new Gerrit change references a GitHub issue.
811
811
func (b * gopherbot ) cl2issue (ctx context.Context ) error {
812
812
monthAgo := time .Now ().Add (- 30 * 24 * time .Hour )
@@ -831,7 +831,7 @@ func (b *gopherbot) cl2issue(ctx context.Context) error {
831
831
continue
832
832
}
833
833
hasComment := false
834
- substr := fmt .Sprintf ("%d mentions this issue" , cl .Number )
834
+ substr := fmt .Sprintf ("Change https://golang.org/cl/ %d by %s mentions this issue: `%s` " , cl .Number )
835
835
gi .ForeachComment (func (c * maintner.GitHubComment ) error {
836
836
if strings .Contains (c .Body , substr ) {
837
837
hasComment = true
@@ -841,7 +841,11 @@ func (b *gopherbot) cl2issue(ctx context.Context) error {
841
841
})
842
842
if ! hasComment {
843
843
printIssue ("cl2issue" , gi )
844
- msg := fmt .Sprintf ("Change https://golang.org/cl/%d mentions this issue: `%s`" , cl .Number , cl .Commit .Summary ())
844
+ << << << < HEAD
845
+ msg := fmt .Sprintf ("Change https://golang.org/cl/%d by %s mentions this issue: `%s`" , cl .Number , strings .Split ("cl.Commit.Author" , "<" )[0 ], cl .Commit .Summary ())
846
+ == == == =
847
+ msg := fmt .Sprintf ("Change https://golang.org/cl/%d by @%s mentions this issue: `%s`" , cl .Number , cl .Commit .Author , cl .Commit .Summary ())
848
+ >> >> >> > 04e54 a31def4afb0784d367372b9736182f2e172
845
849
if err := b .addGitHubComment (ctx , "golang" , "go" , gi .Number , msg ); err != nil {
846
850
return err
847
851
}
0 commit comments