From 25066d687e7df5a1b5219725139d7d3f4f2d7099 Mon Sep 17 00:00:00 2001 From: brb Date: Thu, 13 Jul 2023 11:22:42 +0200 Subject: [PATCH] added definition --- code/gitea_request.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 code/gitea_request.py diff --git a/code/gitea_request.py b/code/gitea_request.py new file mode 100644 index 0000000..b7233ea --- /dev/null +++ b/code/gitea_request.py @@ -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 \ No newline at end of file