From f97d207b16824e7123ad103f0a7e8723811094b6 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 31 Aug 2026 09:51:03 +0200 Subject: [PATCH] [release] Check that there is no unmerged PR with the label "Z-NextRelease", else exit --- tools/release/releaseV2.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/release/releaseV2.sh b/tools/release/releaseV2.sh index cef4b7e6b0..1b31449122 100755 --- a/tools/release/releaseV2.sh +++ b/tools/release/releaseV2.sh @@ -88,6 +88,15 @@ if [[ ! -d ${buildToolsPath} ]]; then exit 1 fi +# Check that there is no unmerged PR with the label "Z-NextRelease", else exit +unmergedPrs=$(gh pr list --repo element-hq/element-x-android --label "Z-NextRelease" --state open --json title,url -q '.[] | "\(.url): \(.title)"') +if [[ ${unmergedPrs} != "" ]]; then + printf "Fatal: There are unmerged PRs with the label Z-NextRelease:\n%s" "${unmergedPrs}" + printf "\n" + exit 1 +fi + + # Check if git flow is enabled gitFlowDevelop=$(git config gitflow.branch.develop) if [[ ${gitFlowDevelop} != "" ]]