from pydantic import BaseModel from typing import List class GiteaRequest(BaseModel): ref: str before: str after: str compare_url: str commits: List[dict] total_commits: int head_commit: dict repository: dict pusher: dict sender: dict