diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-04-12 19:57:22 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-04-13 11:03:39 +0200 |
commit | 406a796f76824e18f4dca2d29c41dcc3d2e4d457 (patch) | |
tree | 15faba18fd0132c0380cb91524855865037bd6f6 /app/models/ci/commit.rb | |
parent | e84c155f092600b90be291f0f7bb649811fa53fb (diff) | |
download | gitlab-ce-406a796f76824e18f4dca2d29c41dcc3d2e4d457.tar.gz |
Make Pipeline view work
Diffstat (limited to 'app/models/ci/commit.rb')
-rw-r--r-- | app/models/ci/commit.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/ci/commit.rb b/app/models/ci/commit.rb index 8865bd76bd2..687654d3c89 100644 --- a/app/models/ci/commit.rb +++ b/app/models/ci/commit.rb @@ -94,6 +94,10 @@ module Ci end end + def triggered? + trigger_requests.any? + end + def invalidate write_attribute(:status, nil) write_attribute(:started_at, nil) |