Allow to change the used branch
The branch to use in process_auto_release is determined by the branch linked to a series's status, however, at some point during a series projects are branched and the status isn't yet updated so used branch refer to master, and so, to the next series. During the final-rc delta of changes between RC1 and RC2 is retrieved from master, which is wrong. These changes allow to choose another branch if needed. The default used branch will remain the series retrieved by status. Change-Id: Iff8df80aa6f3ba67c04e0674d7c72474f3a4e73a
This commit is contained in:
parent
15570d1634
commit
030a2200d2
|
@ -51,9 +51,6 @@ clone_repo "openstack/releases"
|
|||
cd openstack/releases
|
||||
git review -s > /dev/null
|
||||
|
||||
# Set the branch name for this series
|
||||
branch=$(series_to_branch "$series")
|
||||
|
||||
# Prompt for global parameters to use for all releases
|
||||
read -p "> Enter review topic to use: " topic
|
||||
echo
|
||||
|
@ -64,6 +61,15 @@ echo
|
|||
echo "------------------------------------------------------------------------"
|
||||
commit=$(</dev/stdin)
|
||||
echo
|
||||
# Set the branch name for this series
|
||||
branch=$(series_to_branch "$series")
|
||||
read -p "> Branch to use (${branch}): " temp_branch
|
||||
echo
|
||||
|
||||
if [[ ! -z "${temp_branch}" ]]; then
|
||||
branch=${temp_branch}
|
||||
fi
|
||||
|
||||
newbranch=""
|
||||
read -p "> Create stable branch? [y/N]: " YN
|
||||
if [ "${YN,,}" == "y" ]; then
|
||||
|
|
Loading…
Reference in New Issue