diff --git a/src/gitea.rs b/src/gitea.rs index 878521c..4e13dba 100644 --- a/src/gitea.rs +++ b/src/gitea.rs @@ -17,4 +17,27 @@ pub struct Repo { pub archived: bool, pub has_pull_requests: bool, pub has_issues: bool +} + +#[derive(Serialize, Deserialize, Clone)] +pub struct Branch { + pub label: String, + pub sha: String, + pub repo_id: i64, + pub repo: Repo +} + +#[derive(Serialize, Deserialize, Clone)] +pub struct Pull { + pub id: i64, + pub url: String, + pub number: i64, + pub title: String, + pub body: String, + pub state: String, + pub mergeable: String, + pub repo: Repo, + pub base: Branch, + pub head: Branch, + pub merge_base: String } \ No newline at end of file