summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAsh McKenzie <amckenzie@gitlab.com>2019-05-28 08:16:26 +0000
committerAsh McKenzie <amckenzie@gitlab.com>2019-05-28 08:16:26 +0000
commit2714f85c1287e560d38c8de9f1f17c3aa3d4c8df (patch)
tree1ce5726f4455210ba023a639d5d3fa52e3a45d54 /lib
parent85b5d31ab47be1992e53ed72d942c9272548672f (diff)
parent7e05f3b78b6e2e892bc309105711316dc17a109d (diff)
downloadgitlab-ce-2714f85c1287e560d38c8de9f1f17c3aa3d4c8df.tar.gz
Merge branch 'use-source-ref-name-in-webhook' into 'master'
Use source ref in pipeline webhook Closes #61553 See merge request gitlab-org/gitlab-ce!28772
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/data_builder/pipeline.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/data_builder/pipeline.rb b/lib/gitlab/data_builder/pipeline.rb
index fa06fb935f7..e1e813849bf 100644
--- a/lib/gitlab/data_builder/pipeline.rb
+++ b/lib/gitlab/data_builder/pipeline.rb
@@ -19,7 +19,7 @@ module Gitlab
def hook_attrs(pipeline)
{
id: pipeline.id,
- ref: pipeline.ref,
+ ref: pipeline.source_ref,
tag: pipeline.tag,
sha: pipeline.sha,
before_sha: pipeline.before_sha,