Skip to content
This repository was archived by the owner on Apr 30, 2023. It is now read-only.

Commit 2b1efad

Browse files
authored
Merge pull request #354 from mareklibra/hacks.updateFacetLib.mlibra
hacks/update-facet-lib.sh: fix users
2 parents 2c78966 + d27b843 commit 2b1efad

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

hacks/update-facet-lib.sh

+7-5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export FACET_UPSTREAM_REPO=${FACET_UPSTREAM_REPO:-'https://github.com/openshift-
1313
echo FACET_UPSTREAM_REPO: ${FACET_UPSTREAM_REPO}
1414

1515
export GITLAB_USER=${GITLAB_USER:-"`whoami`"}
16+
echo GITLAB_USER: $GITLAB_USER
17+
1618
export UHC_PORTAL_REPO=${UHC_PORTAL_REPO:-"https://gitlab.cee.redhat.com/${GITLAB_USER}/uhc-portal.git"}
1719
echo UHC_PORTAL_REPO: ${UHC_PORTAL_REPO}
1820

@@ -58,16 +60,16 @@ git commit -m "Update facet-lib to ${FACET_LIB_VERSION}"
5860
# All remote changes at the end
5961
echo -e "${GREEN_COLOR}Pushing changes to remote${NC}"
6062

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-
6563
cd ${TMPDIR}/uhc-portal
6664
echo Pushing to ${UHC_PORTAL_REPO} to create a merge request there
6765
git push --set-upstream origin ${UHC_PORTAL_BRANCH}
6866

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+
6971
# 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} &
7173
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}" &
7274
xdg-open "https://github.com/mareklibra/facet-lib/pulls" & # to close/re-open generated PR (optional)
7375

0 commit comments

Comments
 (0)