File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ func ReportInitialJobsStatus(cr *CommentReporter, jobs []orchestrator.Job) error
30
30
commentId := cr .CommentId
31
31
message := ""
32
32
if len (jobs ) == 0 {
33
+ message = message + ":construction_worker: No projects impacted"
34
+ } else {
33
35
message = message + ":construction_worker: The following projects are impacted\n \n "
34
36
for _ , job := range jobs {
35
37
message = message + fmt .Sprintf ("" +
@@ -38,8 +40,6 @@ func ReportInitialJobsStatus(cr *CommentReporter, jobs []orchestrator.Job) error
38
40
"<!-- PROJECTHOLDEREND %v -->\n " +
39
41
"" , job .ProjectName , job .ProjectName , job .ProjectName )
40
42
}
41
- } else {
42
- message = message + ":construction_worker: No projects impacted"
43
43
}
44
44
err := prService .EditComment (prNumber , commentId , message )
45
45
return err
You can’t perform that action at this time.
0 commit comments