diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-24 12:34:01 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-24 12:34:01 +0300 |
commit | 865de49b0832dc1e2fa74034a25d186980b6a361 (patch) | |
tree | 3315349cadf5fc0d069188b4b487b14fbfea987f /app/models/ci/stage.rb | |
parent | 8657d5dd8af6c365b41d7c2997e6e5c9e18e8241 (diff) |
Update related stage status when job status is changed
Diffstat (limited to 'app/models/ci/stage.rb')
-rw-r--r-- | app/models/ci/stage.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/ci/stage.rb b/app/models/ci/stage.rb index 066903ddc5b..78caa70e52e 100644 --- a/app/models/ci/stage.rb +++ b/app/models/ci/stage.rb @@ -17,6 +17,8 @@ module Ci validates :pipeline, presence: true, unless: :importing? validates :name, presence: true, unless: :importing? + ## TODO, should we extract these events to `Ci::Eventable`? + # state_machine :status, initial: :created do event :enqueue do transition created: :pending |