File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -789,6 +789,10 @@ Please visit Gerrit at %s.
789
789
problems := rules .Check (change )
790
790
if len (problems ) > 0 {
791
791
summary := rules .FormatResults (problems )
792
+ user := author
793
+ if pr .User != nil && pr .User .Login != nil {
794
+ user = * pr .User .Login
795
+ }
792
796
// If needed, summary contains advice for how to edit the commit message.
793
797
msg := fmt .Sprintf ("Hello %v, I've spotted some possible problems.\n \n " +
794
798
"These findings are based on simple heuristics. If a finding appears wrong, briefly reply here saying so. " +
@@ -798,7 +802,7 @@ Please visit Gerrit at %s.
798
802
"(In general for Gerrit code reviews, the CL author is expected to close out each piece of feedback by " +
799
803
"marking it as 'Done' if implemented as suggested or otherwise reply to each review comment. " +
800
804
"See the [Review](https://go.dev/doc/contribute#review) section of the Contributing Guide for details.)" ,
801
- author , summary )
805
+ user , summary )
802
806
803
807
gcl , err := b .gerritChangeForPR (pr )
804
808
if err != nil {
You can’t perform that action at this time.
0 commit comments