Skip to content

Individual builds for all rolled up PRs #1372

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Aug 1, 2022
Merged
39 changes: 36 additions & 3 deletions site/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -394,12 +394,45 @@ pub mod github {
pub number: u32,
pub comments_url: String,
pub repository_url: String,
pub labels: Vec<Label>,
}

#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
pub struct Label {
pub name: String,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Request {
pub issue: Issue,
pub comment: Comment,
#[serde(untagged)]
pub enum Request {
Issue { issue: Issue, comment: Comment },
Push(Push),
}

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Push {
pub r#ref: String,
pub sender: Sender,
pub head_commit: HeadCommit,
pub before: String,
pub commits: Vec<Commit>,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Commit {
#[serde(rename = "id")]
pub sha: String,
pub message: String,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct HeadCommit {
pub message: String,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Sender {
pub login: String,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
Loading