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
63c9c9eb
Commit
63c9c9eb
authored
1 year ago
by
jurgenhaas
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into 'main'
Merging develop into main See merge request
!54
parents
f708e314
f9d6f3dd
No related branches found
Branches containing commit
Tags
v2.2.5
Tags containing commit
1 merge request
!54
Merging develop into main
Pipeline
#913452
passed
1 year ago
Stage: build
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
bin/merge
+14
-2
14 additions, 2 deletions
bin/merge
with
15 additions
and
3 deletions
Dockerfile
+
1
−
1
View file @
63c9c9eb
...
...
@@ -21,7 +21,7 @@ ARG DOCKER_CHANNEL=stable
ARG
DOCKER_VERSION=24.0.2
ARG
GIT_EXTRAS_VERSION=7.0.0
ARG
AHOY_VERSION=2.1.1
ARG
GLAB_VERSION=1.3
0
.0
ARG
GLAB_VERSION=1.3
1
.0
ADD
usrbin/column /usr/bin/column
ADD
bin/* /usr/local/bin/
...
...
This diff is collapsed.
Click to expand it.
bin/merge
+
14
−
2
View file @
63c9c9eb
...
...
@@ -6,6 +6,15 @@ if [[ "x$TARGETBRANCH" == "x" ]]; then
echo
"Main branch can not be merged."
exit
1
elif
[[
"
$SOURCEBRANCH
"
==
"develop"
]]
;
then
# Check if remote branch "release" exists.
EC
=
0
git rev-parse
--quiet
--verify
origin/release
>
/dev/null
||
EC
=
$?
if
[[
$EC
-eq
0
]]
;
then
TARGETBRANCH
=
release
else
TARGETBRANCH
=
main
fi
elif
[[
"
$SOURCEBRANCH
"
==
"release"
]]
;
then
TARGETBRANCH
=
main
else
TARGETBRANCH
=
develop
...
...
@@ -29,10 +38,13 @@ fi
git fetch
rm
/tmp/glab.log
>
/dev/null 2>&1
||
true
glab mr create
--fill
--yes
--source-branch
${
SOURCEBRANCH
}
--target-branch
${
TARGETBRANCH
}
--title
"
$TITLE
"
>
/tmp/glab.log
glab mr create
--fill
--yes
--source-branch
${
SOURCEBRANCH
}
--target-branch
${
TARGETBRANCH
}
--title
"
$TITLE
"
>
/tmp/glab.log 2>&1
EC
=
0
grep
"could not find any commits"
/tmp/glab.log
||
EC
=
$?
if
[[
$EC
-eq
0
]]
;
then
echo
"No changes available."
;
exit
0
;
fi
EC
=
0
grep
"Failed to create merge request."
/tmp/glab.log
||
EC
=
$?
if
[[
$EC
-eq
0
]]
;
then
glab mr create
--recover
>
/tmp/glab.log
;
fi
if
[[
$EC
-eq
0
]]
;
then
glab mr create
--recover
>
/tmp/glab.log
2>&1
;
fi
EC
=
0
grep
"Failed to create merge request."
/tmp/glab.log
||
EC
=
$?
if
[[
$EC
-eq
0
]]
;
then
exit
1
;
fi
...
...
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