Ruff after aider
All checks were successful
Run Python tests (through Pytest) / Test (push) Successful in 25s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 23s

This commit is contained in:
Jon Michael Aanes 2025-04-23 08:59:27 +02:00
parent c524891168
commit bff022b806
2 changed files with 11 additions and 5 deletions

View File

@ -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,
)

View File

@ -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: