Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GitLab Drupal CI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Docker
GitLab Drupal CI
Commits
5927cde2
Commit
5927cde2
authored
2 years ago
by
jurgenhaas
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into 'main'
Merging develop into main See merge request
!9
parents
71ec0a58
2fe9aa73
Branches
Branches containing commit
Tags
v2.2.24
Tags containing commit
1 merge request
!9
Merging develop into main
Pipeline
#511694
passed
2 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/merge
+4
-1
4 additions, 1 deletion
bin/merge
with
4 additions
and
1 deletion
bin/merge
+
4
−
1
View file @
5927cde2
...
...
@@ -52,7 +52,9 @@ else
fi
if
[[
-n
${
CI_SERVER_URL
}
]]
;
then
GITLAB_URL
=
$CI_SERVER_URL
GITLAB_PRIVATE_TOKEN
=
$CI_JOB_TOKEN
fi
if
[[
-n
${
GITLAB_ACCESS_TOKEN
}
]]
;
then
GITLAB_PRIVATE_TOKEN
=
$GITLAB_ACCESS_TOKEN
fi
if
[[
"x
${
GITLAB_URL
}
"
==
"x"
]]
;
then
echo
"Missing GITLAB_URL environment variable, should be set to e.g. https://gitlab.lakedrops.com"
...
...
@@ -97,5 +99,6 @@ echo "Created MR at $(echo "$result" | jq -r ."web_url")"
echo
"Merge ..."
# Merge MR
sleep
5
gitlab 200 PUT projects/
"
$PRJID
"
/merge_requests/
"
$MRID
"
/merge
--data
"should_remove_source_branch=0"
echo
"Merged successfully!"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment