From d919755370029f949f90243d6ef32cd83e783eb9 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Thu, 11 Oct 2018 17:38:11 -0400 Subject: [PATCH] update the branching script to include a semver bump We want to ensure that the version numbers on master are always higher than the version numbers on stable branches. We can do that by including an instruction in the commit message for the patch that adds the reno documentation build file when a branch is created. We use "feature" because we just need to bump the version enough to ensure it doesn't conflict with the stable branch but do not want to force new versions that make it appear the new release will be incompatible. Change-Id: I99f7e3858e94ac3bdc5780945e941db6e9b2bba9 Signed-off-by: Doug Hellmann --- .../files/release-tools/add_release_note_page.sh | 12 +++++++++++- .../files/release-tools/make_branch.sh | 4 ++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/roles/copy-release-tools-scripts/files/release-tools/add_release_note_page.sh b/roles/copy-release-tools-scripts/files/release-tools/add_release_note_page.sh index 0f3650daba..f515c0e68f 100755 --- a/roles/copy-release-tools-scripts/files/release-tools/add_release_note_page.sh +++ b/roles/copy-release-tools-scripts/files/release-tools/add_release_note_page.sh @@ -36,7 +36,17 @@ cd $REPO NEW_BRANCH="stable/$SERIES" -commit_msg="Update reno for $NEW_BRANCH" +commit_msg="Update master for $NEW_BRANCH + +Add file to the reno documentation build to show release notes for +$NEW_BRANCH. + +Use pbr instruction to increment the minor version number +automatically so that master versions are higher than the versions on +$NEW_BRANCH. + +Sem-Ver: feature +" titlebranch=$(python -c "print('$SERIES'.title())") cat - > releasenotes/source/${SERIES}.rst <