Disable labels for nwo

This commit is contained in:
Jon Michael Aanes 2025-04-15 23:19:57 +02:00
parent d51070b535
commit d03a8aa9df
2 changed files with 11 additions and 7 deletions

View File

@ -161,7 +161,7 @@ def create_aider_command(issue: str) -> list[str]:
'CONVENTIONS.md',
'--message',
LLM_MESSAGE_FORMAT.format(issue=issue),
'--yes-always',
'--yes',
]
if True:
@ -282,6 +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
def solve_issue_in_repository(
args,
@ -320,11 +321,15 @@ def solve_issue_in_repository(
# Run aider
issue_content = f'# {issue_title}\n{issue_description}'
if not SKIP_AIDER:
succeeded = run_cmd(
create_aider_command(issue_content),
tmpdirname,
check=False,
)
else:
logger.warning("Skipping aider command (for testing)")
succeeded = True
if not succeeded:
logger.error('Aider invocation failed for issue #%s', issue_number)
return False

View File

@ -163,7 +163,6 @@ class GiteaClient:
'body': body,
'head': head,
'base': base,
'labels': labels,
}
response = self.session.post(url, json=json_data)