Skip to content

Commit 13fcae5

Browse files
authored
Add a note summary for auto rerun of a presubmit checkrun (flutter#3140)
Fix flutter/flutter#136203.
1 parent 4607765 commit 13fcae5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

app_dart/lib/src/service/github_checks_service.dart

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,17 @@ class GithubChecksService {
101101
if (rescheduled) {
102102
status = github.CheckRunStatus.queued;
103103
conclusion = null;
104+
output = github.CheckRunOutput(
105+
title: checkRun.name!,
106+
summary: 'Note: this is an auto rerun. The timestamp above is based on the first attempt of this check run.',
107+
);
104108
} else {
105109
final Build buildbucketBuild =
106110
await luciBuildService.getBuildById(buildPushMessage.build!.id, fields: 'id,builder,summaryMarkdown');
107-
output =
108-
github.CheckRunOutput(title: checkRun.name!, summary: getGithubSummary(buildbucketBuild.summaryMarkdown));
111+
output = github.CheckRunOutput(
112+
title: checkRun.name!,
113+
summary: getGithubSummary(buildbucketBuild.summaryMarkdown),
114+
);
109115
log.fine('Updating check run with output: [$output]');
110116
}
111117
}

0 commit comments

Comments
 (0)