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:
parent
1fe03feb49
commit
7c3fd3c59d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user