From f28df768e76a6206b6c4a21207772bd513b94f04 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes <jonjmaa@gmail.com> Date: Tue, 15 Apr 2025 23:25:26 +0200 Subject: [PATCH] Re-enable Aider now that system is usable again --- aider_gitea/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/aider_gitea/__init__.py b/aider_gitea/__init__.py index 95c55dc..3b92ddd 100644 --- a/aider_gitea/__init__.py +++ b/aider_gitea/__init__.py @@ -282,7 +282,7 @@ def run_cmd(cmd: list[str], cwd: Path | None = None, check=True) -> bool: result = subprocess.run(cmd, check=check, cwd=cwd) return result.returncode == 0 -SKIP_AIDER = True +SKIP_AIDER = False def solve_issue_in_repository( args, @@ -293,6 +293,8 @@ def solve_issue_in_repository( issue_number: str, gitea_client=None, ) -> bool: + logger.info("### %s #####", issue_title) + repo_url = f'{args.gitea_url}:{args.owner}/{args.repo}.git'.replace( 'https://', 'git@', @@ -349,7 +351,7 @@ def solve_issue_in_repository( ) files_changed = result.stdout.strip() - if not files_changed: + if not files_changed and not SKIP_AIDER: logger.info( 'Aider did not make any changes beyond the initial ruff pass for issue #%s', issue_number,