Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Tardy <tardyp@gmail.com>2018-10-01 20:22:41 +0300
committerKamil TrzciƄski <ayufan@ayufan.eu>2018-10-01 20:22:41 +0300
commit57a4ee88aeb4f1f67e54544229ebb86540dac49f (patch)
tree31372cb3e151afcdea602021cf2f5d64bc213899 /app/models/ci/pipeline_variable.rb
parent34d24c1ff5a081eb34de455bf8edf0c8c7ac15c4 (diff)
Add variables on pipeline webhook
Diffstat (limited to 'app/models/ci/pipeline_variable.rb')
-rw-r--r--app/models/ci/pipeline_variable.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/ci/pipeline_variable.rb b/app/models/ci/pipeline_variable.rb
index 017ec0b145a..08514d6af4e 100644
--- a/app/models/ci/pipeline_variable.rb
+++ b/app/models/ci/pipeline_variable.rb
@@ -10,5 +10,9 @@ module Ci
alias_attribute :secret_value, :value
validates :key, uniqueness: { scope: :pipeline_id }
+
+ def hook_attrs
+ { key: key, value: value }
+ end
end
end