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
729be16b
Commit
729be16b
authored
2 years ago
by
jurgenhaas
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into 'main'
Merging develop into main See merge request
!43
parents
2fe84df4
fde97062
No related branches found
Branches containing commit
No related tags found
1 merge request
!43
Merging develop into main
Pipeline
#788135
passed
2 years ago
Stage: build
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/merge
+6
-3
6 additions, 3 deletions
bin/merge
with
6 additions
and
3 deletions
bin/merge
+
6
−
3
View file @
729be16b
#!/bin/bash
set
-e
SOURCEBRANCH
=
$(
git rev-parse
--abbrev-ref
HEAD
)
if
[[
"x
$TARGETBRANCH
"
==
"x"
]]
;
then
if
[[
"
$SOURCEBRANCH
"
==
"main"
]]
;
then
...
...
@@ -29,6 +27,11 @@ if [[ "$1" == "major" ]]; then
TITLE
=
"
${
TITLE
}
[MAJOR_VERSION]"
fi
glab mr create
--fill
--yes
--source-branch
${
SOURCEBRANCH
}
--target-branch
${
TARGETBRANCH
}
--title
"
$TITLE
"
sleep
2
rm
/tmp/glab.log
||
true
glab mr create
--fill
--yes
--source-branch
${
SOURCEBRANCH
}
--target-branch
${
TARGETBRANCH
}
--title
"
$TITLE
"
>
/tmp/glab.log
EC
=
0
grep
"Failed to create merge request."
/tmp/glab.log
||
EC
=
$?
if
[[
$EC
-eq
0
]]
;
then
glab mr create
--recover
;
fi
sleep
5
glab mr merge
--yes
${
SOURCEBRANCH
}
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