1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#[derive(serde::Serialize, serde::Deserialize, Debug)]
pub struct Comment {
pub body: String,
pub user: User,
}
#[derive(serde::Serialize, serde::Deserialize, Debug)]
pub struct User {
pub login: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug)]
pub struct Repository {
pub owner: User,
pub name: String,
pub full_name: String,
pub clone_url: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug)]
pub struct Issue {
pub number: u64,
}
/// A generic webhook that we received with minimal verification, only for handling in the GitHub
/// webhook receiver.
#[derive(serde::Serialize, serde::Deserialize, Debug)]
pub struct GenericWebhook {
/// The repository the event originated
pub repository: Repository,
}
|