use u64 for issue IDs

This commit is contained in:
Graham Christensen 2017-11-14 08:29:58 -05:00
parent d95b349fe2
commit 56feb1c409
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C
4 changed files with 3 additions and 4 deletions

View file

@ -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")

View file

@ -19,7 +19,7 @@ pub struct Repository {
#[derive(Serialize, Deserialize, Debug)]
pub struct Issue {
pub number: i32,
pub number: u64,
pub pull_request: Option<PullRequest>,
}

View file

@ -40,7 +40,6 @@ impl Actions {
..Default::default()
};
return vec![
worker::Action::Publish(worker::QueueMsg{
exchange: Some("build-results".to_owned()),

View file

@ -10,6 +10,6 @@ pub struct Repo {
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Pr {
pub target_branch: Option<String>,
pub number: i64,
pub number: u64,
pub head_sha: String,
}