summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authormelanie witt <melwittt@gmail.com>2016-09-28 21:52:28 +0000
committermelanie witt <melwittt@gmail.com>2016-09-28 21:52:28 +0000
commit7c3fd3c59da133bb4fb832dde3a47d3eb38748b8 (patch)
tree63db0010fdb897aa4c9fd3b28096499a26bf2f86 /tools
parent1fe03feb499d0f48cf2ad2984f5d4b676b678668 (diff)
downloadnova-7c3fd3c59da133bb4fb832dde3a47d3eb38748b8.tar.gz
Make releasenotes reminder detect added and untracked notes
When 'tox -ereleasenotes' is run, the releasenotes are built from the committed notes. We have a script that displays a reminder when it detects uncommitted notes. It doesn't, however, detect newly added notes or untracked notes. This adds detection of added and untracked notes for displaying the reminder message. Change-Id: I5164f0089eae4a95bc3e68cd3b515ef23556b227
Diffstat (limited to 'tools')
-rwxr-xr-xtools/releasenotes_tox.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/releasenotes_tox.sh b/tools/releasenotes_tox.sh
index 4fecfd9299..fc64b9950b 100755
--- a/tools/releasenotes_tox.sh
+++ b/tools/releasenotes_tox.sh
@@ -9,7 +9,7 @@ sphinx-build -a -E -W \
BUILD_RESULT=$?
UNCOMMITTED_NOTES=$(git status --porcelain | \
- awk '$1 == "M" && $2 ~ /releasenotes\/notes/ {print $2}')
+ awk '$1 ~ "M|A|??" && $2 ~ /releasenotes\/notes/ {print $2}')
if [ "${UNCOMMITTED_NOTES}" ]
then