Skip to content

Commit

Permalink
add different message for pending report type
Browse files Browse the repository at this point in the history
  • Loading branch information
taraspos committed Oct 22, 2020
1 parent fb8bbc1 commit 131c2e0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions service/bitbucket/annotator.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,13 @@ func (r *ReportAnnotator) createOrUpdateReport(ctx context.Context, redportID, t
report.SetReporter(reporter)
report.SetLogoUrl(logoURL)
report.SetResult(reportStatus)
if reportStatus == reportResultPassed {
switch reportStatus {
case reportResultPassed:
report.SetDetails("Great news! Reviewdog couldn't spot any issues!")
} else {
report.SetDetails("Woof-Woof! This report generated for you by reviewdog")
case reportResultPending:
report.SetDetails("Please wait for Reviewdog to finish checking your code for issues.")
default:
report.SetDetails("Woof-Woof! This report generated for you by reviewdog.")
}

_, resp, err := r.cli.ReportsApi.CreateOrUpdateReport(
Expand Down

0 comments on commit 131c2e0

Please sign in to comment.