mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Merge pull request #7606 from element-hq/feature/bma/releaseScriptCheckUnmergedPrs
[release] Check that there is no unmerged PR with the label "Z-NextRelease", else exit
This commit is contained in:
@@ -88,6 +88,15 @@ if [[ ! -d ${buildToolsPath} ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
# Check if git flow is enabled
|
||||||
gitFlowDevelop=$(git config gitflow.branch.develop)
|
gitFlowDevelop=$(git config gitflow.branch.develop)
|
||||||
if [[ ${gitFlowDevelop} != "" ]]
|
if [[ ${gitFlowDevelop} != "" ]]
|
||||||
|
|||||||
Reference in New Issue
Block a user