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)
|
run_cmd(['git', 'push', 'origin', branch_name], repository_path, check=False)
|
||||||
|
|
||||||
|
|
||||||
def handle_failing_pipelines(
|
def handle_failing_pipelines(
|
||||||
repository_config: RepositoryConfig,
|
repository_config: RepositoryConfig,
|
||||||
pr_number: str,
|
pr_number: str,
|
||||||
|
@ -623,4 +624,6 @@ def handle_failing_pipelines(
|
||||||
repository_path,
|
repository_path,
|
||||||
check=False,
|
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'
|
url = f'{self.gitea_url}/repos/{owner}/{repo}/actions/runs'
|
||||||
response = self.session.get(url)
|
response = self.session.get(url)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
runs = response.json().get("workflow_runs", [])
|
runs = response.json().get('workflow_runs', [])
|
||||||
failed = []
|
failed = []
|
||||||
for run in runs:
|
for run in runs:
|
||||||
if any(pr.get("number") == int(pr_number) for pr in run.get("pull_requests", [])):
|
if any(
|
||||||
if run.get("conclusion") not in ("success",):
|
pr.get('number') == int(pr_number)
|
||||||
failed.append(run.get("id"))
|
for pr in run.get('pull_requests', [])
|
||||||
|
):
|
||||||
|
if run.get('conclusion') not in ('success',):
|
||||||
|
failed.append(run.get('id'))
|
||||||
return failed
|
return failed
|
||||||
|
|
||||||
def get_pipeline_log(self, owner: str, repo: str, run_id: int) -> str:
|
def get_pipeline_log(self, owner: str, repo: str, run_id: int) -> str:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user