Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/task_helpers.rb')
-rw-r--r--lib/task_helpers.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/task_helpers.rb b/lib/task_helpers.rb
index 01f686c5..32a1559f 100644
--- a/lib/task_helpers.rb
+++ b/lib/task_helpers.rb
@@ -35,8 +35,10 @@ def retrieve_branch(slug)
when 'charts'
chart = chart_version(ENV["CI_COMMIT_REF_NAME"]).match(VERSION_FORMAT)
"#{chart[:major]}-#{chart[:minor]}-stable"
- when 'operator'
- "master"
+ # If the upstream product doesn't follow a stable branch scheme, set the
+ # branch to the default
+ else
+ "#{default_branch(products[slug].fetch('repo'))}"
end
# If we're NOT on a gitlab-docs stable branch, fetch the BRANCH_* environment
# variable, and if not assigned, set to the default branch.