Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
motatoes committed Jan 25, 2024
1 parent b290127 commit 037fbde
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions backend/controllers/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ func handlePullRequestEvent(gh utils.GithubClientProvider, payload *github.PullR
return fmt.Errorf("error getting digger config")
}

commentReporter, err := utils.InitCommentReporter(ghService, prNumber, ":robot: Digger starting")
commentReporter, err := utils.InitCommentReporter(ghService, prNumber, ":construction_worker: Digger starting...")
if err != nil {
log.Printf("Error initializing comment reporter: %v", err)
return fmt.Errorf("error initializing comment reporter")
Expand Down Expand Up @@ -578,7 +578,7 @@ func handleIssueCommentEvent(gh utils.GithubClientProvider, payload *github.Issu
return fmt.Errorf("error getting digger config")
}

commentReporter, err := utils.InitCommentReporter(ghService, issueNumber, ":robot: Digger starting")
commentReporter, err := utils.InitCommentReporter(ghService, issueNumber, ":construction_worker: Digger starting....")
if err != nil {
log.Printf("Error initializing comment reporter: %v", err)
return fmt.Errorf("error initializing comment reporter")
Expand Down
4 changes: 2 additions & 2 deletions backend/utils/pr_comment.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ func ReportInitialJobsStatus(cr *CommentReporter, jobs []orchestrator.Job) error
prService := cr.PrService
commentId := cr.CommentId
message := "" +
":white_circle: :arrow_right: The following projects are impacted\n\n"
":construction_worker: The following projects are impacted\n\n"
for _, job := range jobs {
message = message + fmt.Sprintf(""+
"<!-- PROJECTHOLDER %v -->\n"+
":airplane: %v Pending\n"+
":clock11: %v Pending\n"+
"<!-- PROJECTHOLDEREND %v -->\n"+
"", job.ProjectName, job.ProjectName, job.ProjectName)
}
Expand Down
2 changes: 1 addition & 1 deletion cli/pkg/digger/digger.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func RunJobs(

message = message + fmt.Sprintf(""+
"<!-- PROJECTHOLDER %v -->\n"+
":airplane: %v %v [Resources %v created, %v updated, %v deleted]\n"+
":white_check_mark: %v %v [Resources %v created, %v updated, %v deleted]\n"+
"<!-- PROJECTHOLDEREND %v -->\n"+
"", job.ProjectName, jobjson.ProjectName, job.Status.ToString(), job.ResourcesCreated, job.ResourcesUpdated, job.ResourcesDeleted, job.ProjectName)
}
Expand Down

0 comments on commit 037fbde

Please sign in to comment.