Skip to content

Commit

Permalink
Do not use check API
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi committed Aug 8, 2022
1 parent f905af0 commit 9055897
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/publish/publisher.py
Expand Up @@ -298,7 +298,7 @@ def publish_check(self,
# get stats from earlier commits
before_stats = None
before_check_run = None
if self._settings.compare_earlier:
if self._settings.compare_earlier and False:
before_commit_sha = self._settings.event.get('before')
logger.debug(f'comparing against before={before_commit_sha}')
before_check_run = self.get_check_run(before_commit_sha)
Expand All @@ -319,6 +319,7 @@ def publish_check(self,
summary_with_digest = get_long_summary_with_digest_md(stats_with_delta, stats)
split_annotations = [annotation.to_dict() for annotation in all_annotations]
split_annotations = [split_annotations[x:x+50] for x in range(0, len(split_annotations), 50)] or [[]]
split_annotations = []
for annotations in split_annotations:
output = dict(
title=title,
Expand Down Expand Up @@ -347,7 +348,7 @@ def publish_check(self,
stats=stats,
stats_with_delta=stats_with_delta if before_stats is not None else None,
annotations=all_annotations,
check_url=check_run.html_url
check_url=check_run.html_url if check_run else None
)
self.publish_json(data)

Expand Down

0 comments on commit 9055897

Please sign in to comment.