From 99d8abb7e760f894333622f38da1e01b121dcb31 Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Wed, 26 Mar 2025 13:43:33 +0100 Subject: [PATCH] moved some lines around to defer responsability --- pull_requests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pull_requests.py b/pull_requests.py index 024ab6a..79f537c 100644 --- a/pull_requests.py +++ b/pull_requests.py @@ -65,7 +65,6 @@ def process_pull( ): if pr.number in cache.get(repo.full_name, set()): dataset.entries.append(cache[repo.full_name][pr.number]) - dataset.to_json(args.output) return commits = list(pr.get_commits()) @@ -196,7 +195,6 @@ def process_pull( if entry.metadata.successful: entry.metadata.reason_for_failure = "" # was set to 'still processing', since it's done being processed and was successful, there are no reasons for failure - dataset.to_json(args.output) def process_repo( @@ -222,6 +220,7 @@ def process_repo( if is_pull_good(pr): n_good_prs += 1 process_pull(repo, pr, dataset, repos_dir, cache) + dataset.to_json(args.output) def process_repos(