Specify the subset when creating a build job
This commit is contained in:
parent
47f3bf00ff
commit
b5f70a53c0
|
@ -8,7 +8,14 @@ use amqp::protocol;
|
|||
pub struct BuildJob {
|
||||
pub repo: Repo,
|
||||
pub pr: Pr,
|
||||
pub attrs: Vec<String>
|
||||
pub subset: Option<Subset>,
|
||||
pub attrs: Vec<String>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
pub enum Subset {
|
||||
Nixpkgs,
|
||||
NixOS,
|
||||
}
|
||||
|
||||
pub fn from(data: &Vec<u8>) -> Result<BuildJob, serde_json::error::Error> {
|
||||
|
|
|
@ -99,7 +99,8 @@ impl worker::SimpleWorker for GitHubCommentWorker {
|
|||
head_sha: pr.head.sha.clone(),
|
||||
target_branch: Some(pr.base.commit_ref.clone())
|
||||
},
|
||||
attrs: attrs
|
||||
subset: Some(buildjob::Subset::Nixpkgs),
|
||||
attrs: attrs,
|
||||
};
|
||||
|
||||
let props = BasicProperties {
|
||||
|
|
Loading…
Reference in a new issue