fix: che-22646 use gh instead of hub

Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
pull/604/head
Mykhailo Kuznietsov 2023-11-08 19:54:51 +02:00
parent 72f191bcda
commit 68d06f9fcc
2 changed files with 4 additions and 6 deletions

View File

@ -88,11 +88,10 @@ jobs:
run: |
sudo apt-get update -y || true
# install more dependencies
sudo apt-get -y -q install wget curl bash git hub
sudo apt-get -y -q install wget curl bash git
java -version
# want git >=2.24, hub >=2
hub --version # hub reports git version too
git --version
gh --version
# want >=5
bash --version

View File

@ -155,8 +155,7 @@ commitChangeOrCreatePR() {
git checkout "${PR_BRANCH}"
git pull origin "${PR_BRANCH}" || true
git push origin "${PR_BRANCH}"
lastCommitComment="$(git log -1 --pretty=%B)"
hub pull-request -f -m "${lastCommitComment}" -b "${aBRANCH}" -h "${PR_BRANCH}"
gh pr create -f -B "${aBRANCH}" -H "${PR_BRANCH}"
fi
set -e
}