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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
* GitHub's official OpenAPI spec + Octokit extension
*
* OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
*
* The version of the OpenAPI document: 16.6.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// MergeGroup : A group of pull requests that the merge queue has grouped together to be merged.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct MergeGroup {
/// The SHA of the merge group.
#[serde(rename = "head_sha")]
pub head_sha: String,
/// The full ref of the merge group.
#[serde(rename = "head_ref")]
pub head_ref: String,
/// The SHA of the merge group's parent commit.
#[serde(rename = "base_sha")]
pub base_sha: String,
/// The full ref of the branch the merge group will be merged into.
#[serde(rename = "base_ref")]
pub base_ref: String,
#[serde(rename = "head_commit")]
pub head_commit: Box<models::SimpleCommit>,
}
impl MergeGroup {
/// A group of pull requests that the merge queue has grouped together to be merged.
pub fn new(head_sha: String, head_ref: String, base_sha: String, base_ref: String, head_commit: models::SimpleCommit) -> MergeGroup {
MergeGroup {
head_sha,
head_ref,
base_sha,
base_ref,
head_commit: Box::new(head_commit),
}
}
}