Commit 507613fd authored by Rémy Coutable's avatar Rémy Coutable

Merge branch '349140-ci-job-add-jh-folder-fails-for-mrs-from-forks' into 'master'

Resolve "CI job "add-jh-folder" fails for MRs from forks"

See merge request gitlab-org/gitlab!77261
parents e02f9ce2 bbcff84f
......@@ -73,6 +73,10 @@ class FindJhBranch
ENV['CI_DEFAULT_BRANCH']
end
def merge_request_project_id
ENV['CI_MERGE_REQUEST_PROJECT_ID']
end
def merge_request_id
ENV['CI_MERGE_REQUEST_IID']
end
......@@ -81,12 +85,8 @@ class FindJhBranch
"#{ref_name}-jh"
end
def project_id
API::DEFAULT_OPTIONS[:project]
end
def merge_request
@merge_request ||= gitlab.merge_request(project_id, merge_request_id)
@merge_request ||= gitlab.merge_request(merge_request_project_id, merge_request_id)
end
def gitlab
......
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