Skip to content

Commit

Permalink
models: Add CheckRunOutput (#515)
Browse files Browse the repository at this point in the history
Co-authored-by: MarcoFalke <*~=`'#}+{/-|&$^[email protected]>
  • Loading branch information
maflcko and MarcoFalke authored Jan 9, 2024
1 parent 09581da commit 4115063
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/models/checks.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
use super::*;

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct CheckRunOutput {
pub title: Option<String>,
pub summary: Option<String>,
pub text: Option<String>,
pub annotations_count: u64,
pub annotations_url: String,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct CheckRun {
Expand All @@ -10,6 +20,7 @@ pub struct CheckRun {
pub url: String,
pub html_url: Option<String>,
pub conclusion: Option<String>,
pub output: CheckRunOutput,
pub started_at: Option<chrono::DateTime<chrono::Utc>>,
pub completed_at: Option<chrono::DateTime<chrono::Utc>>,
pub name: String,
Expand Down

0 comments on commit 4115063

Please sign in to comment.