Skip to content

Commit

Permalink
Merge pull request #16 from czechboy0/hd/report_current_step_to_github
Browse files Browse the repository at this point in the history
Added running integration's current step into github status
  • Loading branch information
Honza Dvorsky committed May 3, 2015
2 parents efc88c3 + 819811b commit 3216759
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Buildasaur/HDGitHubXCBotSyncer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,8 @@ public class HDGitHubXCBotSyncer : Syncer {

//when an integration is Pending, Preparing or Checking out, it doesn't have a blueprint, but it is, by definition, a headCommit
//integration (because it will check out the latest commit on the branch when it starts running)
if integration.currentStep == .Pending ||
if
integration.currentStep == .Pending ||
integration.currentStep == .Preparing ||
integration.currentStep == .Checkout
{
Expand Down Expand Up @@ -574,13 +575,12 @@ public class HDGitHubXCBotSyncer : Syncer {
} else {

//there's no pending integration, it's down to running and completed possibly being there

if let running = running {

//there is a running integration.
//TODO: estimate, based on the average running time of this bot and on the started timestamp, when it will finish. add that to the description.

let status = self.createStatusFromState(.Pending, description: "Build running...")
let currentStepString = running.currentStep.rawValue
let status = self.createStatusFromState(.Pending, description: "Integration step: \(currentStepString)...")
statusWithComment = (status: status, comment: nil)

} else {
Expand Down

0 comments on commit 3216759

Please sign in to comment.