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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-12-23 18:11:20 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-12-23 18:11:20 +0300
commit273ee970db58a0488d7b1de5ad7c62bfd21572e4 (patch)
treed8865c447cd60713575a022d6ef2760dc1bf1795 /scripts/setup
parent026ed016d068a58b2e09422135b5b78bd11f2a2b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts/setup')
-rwxr-xr-xscripts/setup/find-jh-branch.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/setup/find-jh-branch.rb b/scripts/setup/find-jh-branch.rb
index 9c23b72e51d..812e1c210f4 100755
--- a/scripts/setup/find-jh-branch.rb
+++ b/scripts/setup/find-jh-branch.rb
@@ -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