Skip to content

Commit

Permalink
Merge pull request #7 from EGT-Ukraine/fix/cancel-status
Browse files Browse the repository at this point in the history
canceled status added
  • Loading branch information
Vyacheslav Pryimak authored Feb 13, 2019
2 parents 1cc34af + 6cca9a4 commit 93514a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ func main() {
}
case models.Failed:
log.Fatalln("pipeline failed!")
case models.Canceled:
log.Fatalln("pipeline canceled!")
case models.Success:
log.Println("pipeline success!")
os.Exit(0)
Expand Down
9 changes: 5 additions & 4 deletions models/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package models
type PipelineStatus string

const (
Running PipelineStatus = "running"
Pending = "pending"
Failed = "failed"
Success = "success"
Running PipelineStatus = "running"
Pending = "pending"
Failed = "failed"
Success = "success"
Canceled = "canceled"
)

type CreatePipelineResponse struct {
Expand Down

0 comments on commit 93514a7

Please sign in to comment.