diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-08-11 17:23:07 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-08-11 17:23:07 +0200 |
commit | ffa75a497a23bf6f87de626fee08ff4538a12587 (patch) | |
tree | 36e498b702c2f00d185f2f0cb030eea8697be0dd /app/models/ci | |
parent | 0b0a53ee5ec3782c6c7e166f69f190e820232fb0 (diff) | |
download | gitlab-ce-ffa75a497a23bf6f87de626fee08ff4538a12587.tar.gz |
Remove stage parameter from send payload
Diffstat (limited to 'app/models/ci')
-rw-r--r-- | app/models/ci/pipeline.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb index 9545a6e3ab9..e2663f50dd1 100644 --- a/app/models/ci/pipeline.rb +++ b/app/models/ci/pipeline.rb @@ -19,6 +19,8 @@ module Ci after_save :keep_around_commits + delegate :stages, to: :statuses + # ref can't be HEAD or SHA, can only be branch/tag name scope :latest_successful_for, ->(ref = default_branch) do where(ref: ref).success.order(id: :desc).limit(1) |