add Pull and Branch types
This commit is contained in:
parent
761f33273e
commit
55a1c57212
23
src/gitea.rs
23
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
|
||||
}
|
Loading…
Reference in New Issue