Skip to content

Commit 60a7a13

Browse files
committed
attempt to append each time
1 parent 151068c commit 60a7a13

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

backend/controllers/github.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ func handlePullRequestEvent(gh utils.GithubClientProvider, payload *github.PullR
500500
commentReporterManager.UpdateComment(fmt.Sprintf(":x: could not handle commentId: %v", err))
501501
}
502502

503-
placeholderComment, err := ghService.PublishComment(prNumber, "<digger report placehoder>")
503+
placeholderComment, err := ghService.PublishComment(prNumber, "digger report placehoder")
504504
if err != nil {
505505
log.Printf("strconv.ParseInt error: %v", err)
506506
commentReporterManager.UpdateComment(fmt.Sprintf(":x: could not create placeholder commentId for report: %v", err))
@@ -882,7 +882,7 @@ func handleIssueCommentEvent(gh utils.GithubClientProvider, payload *github.Issu
882882
return fmt.Errorf("comment reporter error: %v", err)
883883
}
884884

885-
placeholderComment, err := ghService.PublishComment(issueNumber, "<digger report placehoder>")
885+
placeholderComment, err := ghService.PublishComment(issueNumber, "digger report placehoder")
886886
if err != nil {
887887
log.Printf("strconv.ParseInt error: %v", err)
888888
commentReporterManager.UpdateComment(fmt.Sprintf(":x: could not create placeholder commentId for report: %v", err))

libs/comment_utils/reporting/reporting.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ func appendToExistingComment(ciService ci.PullRequestService, prNumber int, exis
205205

206206
// strip first and last lines
207207
lines := strings.Split(existingCommentBody, "\n")
208-
if len(lines) > 1 {
209-
lines = lines[1 : len(lines)-1]
210-
}
208+
//if len(lines) > 1 {
209+
// lines = lines[1 : len(lines)-1]
210+
//}
211211
existingCommentBody = strings.Join(lines, "\n")
212212

213213
existingCommentBody = existingCommentBody + "\n\n" + reportToAppend + "\n"

0 commit comments

Comments
 (0)