This repository was archived by the owner on Apr 30, 2023. It is now read-only.
File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ export FACET_UPSTREAM_REPO=${FACET_UPSTREAM_REPO:-'https://github.com/openshift-
13
13
echo FACET_UPSTREAM_REPO: ${FACET_UPSTREAM_REPO}
14
14
15
15
export GITLAB_USER=${GITLAB_USER:- " ` whoami` " }
16
+ echo GITLAB_USER: $GITLAB_USER
17
+
16
18
export UHC_PORTAL_REPO=${UHC_PORTAL_REPO:- " https://gitlab.cee.redhat.com/${GITLAB_USER} /uhc-portal.git" }
17
19
echo UHC_PORTAL_REPO: ${UHC_PORTAL_REPO}
18
20
@@ -58,16 +60,16 @@ git commit -m "Update facet-lib to ${FACET_LIB_VERSION}"
58
60
# All remote changes at the end
59
61
echo -e " ${GREEN_COLOR} Pushing changes to remote${NC} "
60
62
61
- cd ${TMPDIR} /facet
62
- echo " A commit right to ${FACET_UPSTREAM_REPO} master will be pushed (wihout PR)"
63
- git push --follow-tags
64
-
65
63
cd ${TMPDIR} /uhc-portal
66
64
echo Pushing to ${UHC_PORTAL_REPO} to create a merge request there
67
65
git push --set-upstream origin ${UHC_PORTAL_BRANCH}
68
66
67
+ cd ${TMPDIR} /facet
68
+ echo " A commit right to ${FACET_UPSTREAM_REPO} master will be pushed (wihout PR)"
69
+ git push --follow-tags
70
+
69
71
# The last mile in a browser for convenience
70
- xdg-open https://gitlab.cee.redhat.com/mlibra /uhc-portal/-/merge_requests/new? merge_request%5Bsource_branch%5D=${UHC_PORTAL_BRANCH} &
72
+ xdg-open https://gitlab.cee.redhat.com/${GITLAB_USER} /uhc-portal/-/merge_requests/new? merge_request%5Bsource_branch%5D=${UHC_PORTAL_BRANCH} &
71
73
xdg-open " https://github.com/openshift-metal3/facet/releases/new?tag=v${FACET_LIB_VERSION} &title=v${FACET_LIB_VERSION} &body=${TAG} : https://github.com/mareklibra/facet-lib/releases/tag/v${FACET_LIB_VERSION} " &
72
74
xdg-open " https://github.com/mareklibra/facet-lib/pulls" & # to close/re-open generated PR (optional)
73
75
You can’t perform that action at this time.
0 commit comments