feat: implement Gitea notification polling and state persistence

This commit is contained in:
Michael
2026-06-30 21:31:35 +02:00
parent edc8415571
commit 3a62e4cf7b
4 changed files with 281 additions and 39 deletions
+2 -1
View File
@@ -1,6 +1,6 @@
import logging
from pydantic import BaseModel
from typing import Any
from typing import Any, Optional
from gitea.models import IssueModel, PullRequestModel
logger: logging.Logger = logging.getLogger("work-queue")
@@ -11,6 +11,7 @@ class WorkItem(BaseModel):
task_type: str # 'issue' or 'pr'
task_number: int
task_info: IssueModel | PullRequestModel
notification_id: Optional[int] = None
priority: int = 0