Skip to content

Commit 9055897

Browse files
committed
Do not use check API
1 parent f905af0 commit 9055897

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python/publish/publisher.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def publish_check(self,
298298
# get stats from earlier commits
299299
before_stats = None
300300
before_check_run = None
301-
if self._settings.compare_earlier:
301+
if self._settings.compare_earlier and False:
302302
before_commit_sha = self._settings.event.get('before')
303303
logger.debug(f'comparing against before={before_commit_sha}')
304304
before_check_run = self.get_check_run(before_commit_sha)
@@ -319,6 +319,7 @@ def publish_check(self,
319319
summary_with_digest = get_long_summary_with_digest_md(stats_with_delta, stats)
320320
split_annotations = [annotation.to_dict() for annotation in all_annotations]
321321
split_annotations = [split_annotations[x:x+50] for x in range(0, len(split_annotations), 50)] or [[]]
322+
split_annotations = []
322323
for annotations in split_annotations:
323324
output = dict(
324325
title=title,
@@ -347,7 +348,7 @@ def publish_check(self,
347348
stats=stats,
348349
stats_with_delta=stats_with_delta if before_stats is not None else None,
349350
annotations=all_annotations,
350-
check_url=check_run.html_url
351+
check_url=check_run.html_url if check_run else None
351352
)
352353
self.publish_json(data)
353354

0 commit comments

Comments
 (0)