summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPierre Tardy <tardyp@gmail.com>2018-10-01 17:22:41 +0000
committerKamil TrzciƄski <ayufan@ayufan.eu>2018-10-01 17:22:41 +0000
commit57a4ee88aeb4f1f67e54544229ebb86540dac49f (patch)
tree31372cb3e151afcdea602021cf2f5d64bc213899 /app
parent34d24c1ff5a081eb34de455bf8edf0c8c7ac15c4 (diff)
downloadgitlab-ce-57a4ee88aeb4f1f67e54544229ebb86540dac49f.tar.gz
Add variables on pipeline webhook
Diffstat (limited to 'app')
-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