Ruff after aider
This commit is contained in:
parent
c524891168
commit
bff022b806
|
@ -591,6 +591,7 @@ def handle_pr_comments(
|
|||
)
|
||||
run_cmd(['git', 'push', 'origin', branch_name], repository_path, check=False)
|
||||
|
||||
|
||||
def handle_failing_pipelines(
|
||||
repository_config: RepositoryConfig,
|
||||
pr_number: str,
|
||||
|
@ -623,4 +624,6 @@ def handle_failing_pipelines(
|
|||
repository_path,
|
||||
check=False,
|
||||
)
|
||||
run_cmd(['git', 'push', 'origin', branch_name], repository_path, check=False)
|
||||
run_cmd(
|
||||
['git', 'push', 'origin', branch_name], repository_path, check=False,
|
||||
)
|
||||
|
|
|
@ -174,12 +174,15 @@ class GiteaClient:
|
|||
url = f'{self.gitea_url}/repos/{owner}/{repo}/actions/runs'
|
||||
response = self.session.get(url)
|
||||
response.raise_for_status()
|
||||
runs = response.json().get("workflow_runs", [])
|
||||
runs = response.json().get('workflow_runs', [])
|
||||
failed = []
|
||||
for run in runs:
|
||||
if any(pr.get("number") == int(pr_number) for pr in run.get("pull_requests", [])):
|
||||
if run.get("conclusion") not in ("success",):
|
||||
failed.append(run.get("id"))
|
||||
if any(
|
||||
pr.get('number') == int(pr_number)
|
||||
for pr in run.get('pull_requests', [])
|
||||
):
|
||||
if run.get('conclusion') not in ('success',):
|
||||
failed.append(run.get('id'))
|
||||
return failed
|
||||
|
||||
def get_pipeline_log(self, owner: str, repo: str, run_id: int) -> str:
|
||||
|
|
Loading…
Reference in New Issue
Block a user