From 6a857b2a9dfb818d3024fc40c1e956444b67b90f Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Mon, 17 Mar 2025 19:58:37 +0100 Subject: [PATCH] made better reason for failure (to then count the ones that are unsuccessfull) --- pull_requests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pull_requests.py b/pull_requests.py index b3367df..dbf5ec9 100644 --- a/pull_requests.py +++ b/pull_requests.py @@ -110,8 +110,8 @@ def process_pull(repo: Repository, pr: PullRequest, dataset: Dataset, repos_dir: ensure_full_history(repo_path) run_git_cmd(["checkout", pr.merge_commit_sha], repo_path) except subprocess.CalledProcessError as e: - entry.metadata.last_cmd_error_msg = f"stdout: {e.stdout}\n\n\nstderr: {e.stderr}" - entry.metadata.reason_for_failure = f"Couldn't checkout the commit '{pr.merge_commit_sha}'" + entry.metadata.last_cmd_error_msg = f"{e.stderr}" + entry.metadata.reason_for_failure = f"Couldn't checkout the commit" entry.metadata.successful = False return