added definition
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user