We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bfeedb commit 9b71743Copy full SHA for 9b71743
VERSION
@@ -1 +1 @@
1
-v1.8.4
+v1.8.5
pydocteur/pr_status.py
@@ -11,6 +11,9 @@ def is_pr_tests_passed(pr):
11
logger.info(f"Checking PR #{pr.number} CI results")
12
last_commit = [commit for commit in pr.get_commits()][-1]
13
check_suites = [suite for suite in last_commit.get_check_suites() if suite.app.name == "GitHub Actions"]
14
+ if len(check_suites) == 0:
15
+ logging.info(f"PR #{pr.number} has no tests.")
16
+ return False
17
statuses = [suite.status for suite in check_suites]
18
conclusions = [suite.conclusion for suite in check_suites]
19
are_all_checks_done = all(status == "completed" for status in statuses)
0 commit comments