Skip to content

Commit

Permalink
fix: more fixes for gh command (#1790)
Browse files Browse the repository at this point in the history
Signed-off-by: Mykhailo Kuznietsov <[email protected]>
  • Loading branch information
mkuznyetsov authored Nov 29, 2023
1 parent 67fd655 commit 137e44f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/scripts/release/prepare-community-operators-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ do
echo " - Commit changes"
cd "${communityOperatorsLocalGitFolder}"
git add --all
git commit -s -m "Update eclipse-che operator to release ${LAST_PACKAGE_VERSION}"
commitMsg="Update eclipse-che operator to release ${LAST_PACKAGE_VERSION}"
git commit -s -m "${commitMsg}"
echo
echo " - Push branch ${branch} to ${GIT_REMOTE_FORK_CLEAN}"
git push ${FORCE} origin "${branch}"
Expand All @@ -139,7 +140,7 @@ do
PRbody=$(curl -sSLo - ${template_file} | \
sed -r -n '/#+ Updates to existing Operators/,$p' | sed -r -e "s#\[\ \]#[x]#g")

$GH pr create -f -b "${PRbody}" -B "${upstream_org}:${base_branch}" -H "${fork_org}:${branch}"
$GH pr create --title "${commitMsg}" --body "${PRbody}" -H "${fork_org}:${branch}"
else
echo "gh is not installed. Install it from https://hub.github.com/ or submit PR manually using PR template:
${template_file}
Expand Down

0 comments on commit 137e44f

Please sign in to comment.