Skip to content

Commit 690b783

Browse files
committed
enh: accept a milestone number in the update_changes.sh script
1 parent e24c38a commit 690b783

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/update_changes.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ UPCOMING=$?
2323
HEADER="$1 ($(date '+%B %d, %Y'))"
2424
echo $HEADER >> newchanges
2525
echo $( printf "%${#HEADER}s" | tr " " "=" ) >> newchanges
26-
echo "" >> newchanges
26+
27+
if [[ "x$2" != "x" ]]; then
28+
echo "(\`Full changelog <https://github.com/nipy/nipype/milestone/$2?closed=1>\`__)" >> newchanges
29+
fi
2730

2831
# Search for PRs since previous release
2932
git log --grep="Merge pull request" `git describe --tags --abbrev=0`..HEAD --pretty='format: * %b %s' | sed 's+Merge pull request \#\([^\d]*\)\ from\ .*+(https://github.com/nipy/nipype/pull/\1)+' >> newchanges

0 commit comments

Comments
 (0)