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
5639bdce
Commit
5639bdce
authored
2 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
gitlab-ci-cd/drupal#28
Make it work in pipelines too
parent
8561633b
No related branches found
No related tags found
1 merge request
!8
Merging develop into main
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
bin/merge
+12
-8
12 additions, 8 deletions
bin/merge
with
13 additions
and
8 deletions
.gitignore
+
1
−
0
View file @
5639bdce
/.ahoy.l3d
This diff is collapsed.
Click to expand it.
bin/merge
+
12
−
8
View file @
5639bdce
...
@@ -71,14 +71,18 @@ if [[ "$host1" != "$host2" ]]; then
...
@@ -71,14 +71,18 @@ if [[ "$host1" != "$host2" ]]; then
exit
4
exit
4
fi
fi
echo
"Find project ID from remote URL ..."
if
[[
-n
${
CI_PROJECT_ID
}
]]
;
then
# shellcheck disable=SC2001
PRJID
=
$CI_PROJECT_ID
path
=
"
$(
echo
"
$path
"
|
sed
-e
's,\..*,,g'
)
"
else
gitlab 200 GET projects?search
=
"
$path
"
echo
"Find project ID from remote URL ..."
PRJID
=
$(
echo
"
$result
"
| jq
-r
.[0].
"id"
)
# shellcheck disable=SC2001
if
[[
$(
isNumeric
"
$PRJID
"
)
-eq
1
]]
;
then
path
=
"
$(
echo
"
$path
"
|
sed
-e
's,\..*,,g'
)
"
echo
"Can not find project ID"
gitlab 200 GET projects?search
=
"
$path
"
exit
5
PRJID
=
$(
echo
"
$result
"
| jq
-r
.[0].
"id"
)
if
[[
$(
isNumeric
"
$PRJID
"
)
-eq
1
]]
;
then
echo
"Can not find project ID"
exit
5
fi
fi
fi
echo
"Create merge request ..."
echo
"Create merge request ..."
...
...
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