diff --git a/ofborg/src/checkout.rs b/ofborg/src/checkout.rs index 1009990..3d7c372 100644 --- a/ofborg/src/checkout.rs +++ b/ofborg/src/checkout.rs @@ -86,7 +86,7 @@ impl CachedProjectCo { return Ok(self.clone_to().to_str().unwrap().to_string()) } - pub fn fetch_pr(&self, pr_id: i64) -> Result<(),Error> { + pub fn fetch_pr(&self, pr_id: u64) -> Result<(),Error> { let mut lock = self.lock()?; let result = Command::new("git") diff --git a/ofborg/src/ghevent/common.rs b/ofborg/src/ghevent/common.rs index 8a048ea..046a686 100644 --- a/ofborg/src/ghevent/common.rs +++ b/ofborg/src/ghevent/common.rs @@ -19,7 +19,7 @@ pub struct Repository { #[derive(Serialize, Deserialize, Debug)] pub struct Issue { - pub number: i32, + pub number: u64, pub pull_request: Option, } diff --git a/ofborg/src/message/buildjob.rs b/ofborg/src/message/buildjob.rs index c145377..f884356 100644 --- a/ofborg/src/message/buildjob.rs +++ b/ofborg/src/message/buildjob.rs @@ -40,7 +40,6 @@ impl Actions { ..Default::default() }; - return vec![ worker::Action::Publish(worker::QueueMsg{ exchange: Some("build-results".to_owned()), diff --git a/ofborg/src/message/common.rs b/ofborg/src/message/common.rs index 585c9a5..e2a3934 100644 --- a/ofborg/src/message/common.rs +++ b/ofborg/src/message/common.rs @@ -10,6 +10,6 @@ pub struct Repo { #[derive(Serialize, Deserialize, Debug, Clone)] pub struct Pr { pub target_branch: Option, - pub number: i64, + pub number: u64, pub head_sha: String, }