feat(server): add deserialise types for commit status
All checks were successful
All checks were successful
This commit is contained in:
parent
ad7d513481
commit
8ad84bc72b
1 changed files with 17 additions and 0 deletions
|
@ -64,3 +64,20 @@ async fn get_commit_history(
|
|||
struct Commit {
|
||||
sha: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Deserialize)]
|
||||
pub struct CombinedStatus {
|
||||
pub state: CommitStatusState,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Deserialize)]
|
||||
pub enum CommitStatusState {
|
||||
#[serde(rename = "success")]
|
||||
Success,
|
||||
#[serde(rename = "pending")]
|
||||
Pending,
|
||||
#[serde(rename = "failure")]
|
||||
Failure,
|
||||
#[serde(rename = "error")]
|
||||
Error,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue