From d23cd7f77da26b2a2c88244ce659b2df10054543 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D1=8F=D0=BD=20=D0=9C=D0=B8=D0=BD=D0=BA?= =?UTF-8?q?=D0=BE=D0=B2?= Date: Thu, 10 Feb 2022 12:38:01 -0600 Subject: [PATCH] fix: Fixes script with correct commit message. Comparing releases as we may skip few releases. --- resources/update-ljm.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/update-ljm.sh b/resources/update-ljm.sh index 61ab76e5ed..c0834b7aca 100755 --- a/resources/update-ljm.sh +++ b/resources/update-ljm.sh @@ -28,13 +28,19 @@ if [[ "${CURRENT_LJM_DEP}" == "${LATEST_LJM_DEP}" ]]; then exit 1 fi +if [[ ${CURRENT_LJM_DEP} =~ ^.*download/(.*)/lib-jitsi-meet\.tgz$ ]]; then + COMMIT_MSG="https://github.com/jitsi/lib-jitsi-meet/compare/${BASH_REMATCH[1]}...${NEW_LJM_RELEASE}" +else + COMMIT_MSG=${GH_LINK} +fi + pushd ${THIS_DIR}/.. EPOCH=$(date +%s) NEW_BRANCH="update-ljm-${EPOCH}" git checkout -b ${NEW_BRANCH} npm install ${LATEST_LJM_DEP} git add package.json package-lock.json -git commit -m "chore(deps) lib-jitsi-meet@latest" -m "${GH_LINK}" +git commit -m "chore(deps) lib-jitsi-meet@latest" -m "${COMMIT_MSG}" git push origin ${NEW_BRANCH} gh pr create --repo jitsi/jitsi-meet --fill popd