moved definition of class to separate file

This commit is contained in:
brb
2023-07-06 12:50:30 +02:00
parent 2aabc9ab37
commit 39d1ac1474
2 changed files with 20 additions and 15 deletions
+14
View File
@@ -0,0 +1,14 @@
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