add Pull and Branch types

This commit is contained in:
b1ek 2023-08-05 02:19:34 +10:00
parent 761f33273e
commit 55a1c57212
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 23 additions and 0 deletions

View File

@ -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
}