mirror of
https://github.com/karma-riuk/crab.git
synced 2025-07-05 13:38:12 +02:00
moved some lines around to defer responsability
This commit is contained in:
@ -65,7 +65,6 @@ def process_pull(
|
|||||||
):
|
):
|
||||||
if pr.number in cache.get(repo.full_name, set()):
|
if pr.number in cache.get(repo.full_name, set()):
|
||||||
dataset.entries.append(cache[repo.full_name][pr.number])
|
dataset.entries.append(cache[repo.full_name][pr.number])
|
||||||
dataset.to_json(args.output)
|
|
||||||
return
|
return
|
||||||
|
|
||||||
commits = list(pr.get_commits())
|
commits = list(pr.get_commits())
|
||||||
@ -196,7 +195,6 @@ def process_pull(
|
|||||||
|
|
||||||
if entry.metadata.successful:
|
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
|
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(
|
def process_repo(
|
||||||
@ -222,6 +220,7 @@ def process_repo(
|
|||||||
if is_pull_good(pr):
|
if is_pull_good(pr):
|
||||||
n_good_prs += 1
|
n_good_prs += 1
|
||||||
process_pull(repo, pr, dataset, repos_dir, cache)
|
process_pull(repo, pr, dataset, repos_dir, cache)
|
||||||
|
dataset.to_json(args.output)
|
||||||
|
|
||||||
|
|
||||||
def process_repos(
|
def process_repos(
|
||||||
|
Reference in New Issue
Block a user