From 905589763d4954c7f0b3b6d479149d2286dc3471 Mon Sep 17 00:00:00 2001 From: Enrico Minack Date: Mon, 8 Aug 2022 16:43:57 +0200 Subject: [PATCH] Do not use check API --- python/publish/publisher.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/publish/publisher.py b/python/publish/publisher.py index 2618a51f..e7afb8be 100644 --- a/python/publish/publisher.py +++ b/python/publish/publisher.py @@ -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) @@ -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, @@ -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)