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
This commit is contained in:
melanie witt 2016-09-28 21:52:28 +00:00
parent 1fe03feb49
commit 7c3fd3c59d
1 changed files with 1 additions and 1 deletions

View File

@ -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