Commit 297d1fa0 authored by Kamil Trzciński's avatar Kamil Trzciński

Merge branch 'add-a-comment-on-ci-pipeline-git_ref-about-merge-request-ref' into 'master'

Add a comment on `Ci::Pipeline#git_ref` about merge request ref

Closes #54908

See merge request gitlab-org/gitlab-ce!24114
parents 147f7407 bc236e00
...@@ -714,6 +714,12 @@ module Ci ...@@ -714,6 +714,12 @@ module Ci
def git_ref def git_ref
if merge_request? if merge_request?
##
# In the future, we're going to change this ref to
# merge request's merged reference, such as "refs/merge-requests/:iid/merge".
# In order to do that, we have to update GitLab-Runner's source pulling
# logic.
# See https://gitlab.com/gitlab-org/gitlab-runner/merge_requests/1092
Gitlab::Git::BRANCH_REF_PREFIX + ref.to_s Gitlab::Git::BRANCH_REF_PREFIX + ref.to_s
else else
super super
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment