Fix logging
All checks were successful
Run Python tests (through Pytest) / Test (push) Successful in 24s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 22s

This commit is contained in:
Jon Michael Aanes 2025-04-14 13:55:55 +02:00
parent 4c5d2b08fd
commit 7c5e4ead6c

View File

@ -13,6 +13,8 @@ from . import handle_issues, secrets
from .gitea_client import GiteaClient
from .seen_issues_db import SeenIssuesDB
logger = logging.getLogger(__name__)
@dataclass
class AiderArgs:
@ -65,7 +67,7 @@ def main():
if args.repo:
repositories = [args.repo]
else:
repositories = client.iter_user_repositories(args.owner, True)
repositories = list(client.iter_user_repositories(args.owner, True))
while True:
logger.info('Checking for new issues...')
@ -77,6 +79,7 @@ def main():
base_branch=args.base_branch,
)
handle_issues(aider_args, client, seen_issues_db)
del repo
if not args.daemon:
break
logger.info('Sleeping for %d seconds...', args.interval)