feat: implement Gitea notification polling and state persistence

Squash merged Gitea notification polling and state persistence.
This commit was merged in pull request #1.
This commit is contained in:
2026-06-30 21:31:59 +02:00
parent edc8415571
commit 287d20bc56
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