Compare commits

..

No commits in common. "ffd5fbb6629eb20ba205830a816d847ca19aee18" and "820cc68b808e74905becee3fb503e18ca6458ed2" have entirely different histories.

3 changed files with 7 additions and 11 deletions

View File

@ -128,15 +128,13 @@ For code tasks:
3. Then, solve the issue by writing the required code. 3. Then, solve the issue by writing the required code.
""" """
# MODEL = 'ollama/gemma3:27b' #MODEL = 'ollama/gemma3:27b'
MODEL = 'ollama_chat/gemma3:27b' MODEL = 'ollama_chat/gemma3:27b'
def create_aider_command(issue: str) -> list[str]: def create_aider_command(issue: str) -> list[str]:
return [ return [
'aider', 'aider',
'--model', '--model', MODEL ,
MODEL,
'--chat-language', '--chat-language',
'english', 'english',
'--test-cmd', '--test-cmd',
@ -146,7 +144,7 @@ def create_aider_command(issue: str) -> list[str]:
'--auto-test', '--auto-test',
'--no-auto-lint', '--no-auto-lint',
#'--api-key', #'--api-key',
# secrets.llm_api_key(), #secrets.llm_api_key(),
'--read', '--read',
'CONVENTIONS.md', 'CONVENTIONS.md',
'--message', '--message',
@ -245,6 +243,7 @@ def solve_issue_in_repository(
branch_name, branch_name,
issue_number, issue_number,
issue_title, issue_title,
issue_description,
args.base_branch, args.base_branch,
) )

View File

@ -74,6 +74,5 @@ def main():
logger.info('Sleeping for %d seconds...', args.interval) logger.info('Sleeping for %d seconds...', args.interval)
time.sleep(args.interval) time.sleep(args.interval)
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View File

@ -1,6 +1,6 @@
import logging import logging
from collections.abc import Iterator
from typing import Iterator
import requests import requests
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
@ -82,7 +82,7 @@ class GiteaClient:
response.raise_for_status() response.raise_for_status()
return True return True
def get_issues(self, owner: str, repo: str) -> list[dict[str, str]]: def get_issues(self, owner: str, repo: str) -> list[dict[str,str]]:
""" """
Download issues from the specified repository and filter those with the 'aider' label. Download issues from the specified repository and filter those with the 'aider' label.
@ -108,9 +108,7 @@ class GiteaClient:
] ]
return issues return issues
def iter_user_repositories( def iter_user_repositories(self, owner: str, only_those_with_issues: bool = False) -> Iterator[str]:
self, owner: str, only_those_with_issues: bool = False,
) -> Iterator[str]:
""" """
Get a list of repositories for a given user. Get a list of repositories for a given user.