From 7c3fd3c59da133bb4fb832dde3a47d3eb38748b8 Mon Sep 17 00:00:00 2001 From: melanie witt Date: Wed, 28 Sep 2016 21:52:28 +0000 Subject: [PATCH] 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 --- tools/releasenotes_tox.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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