From edcc78a3a4553cbcaf6da514bc3ca97263096507 Mon Sep 17 00:00:00 2001 From: Usama Sadiq Date: Mon, 29 Jul 2024 17:53:48 +0500 Subject: [PATCH] fix: fix github_api to consider commits without checks as passing --- tubular/github_api.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tubular/github_api.py b/tubular/github_api.py index ad244224..80898677 100644 --- a/tubular/github_api.py +++ b/tubular/github_api.py @@ -591,8 +591,11 @@ def _poll_commit(self, sha): ) def _run(): result = self._is_commit_successful(sha) + if result[0] == False: # No Checks found against the Commit + # Returning any string other than '' will set the commit status to succeed. + # Returning 'success' to avoid breaking pipeline checks in case no actions are found + return ("success", None) return (result[2], result[1]) - return _run() def poll_pull_request_test_status(self, pr_number):