Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
enh: accept a milestone number in the update_changes.sh script
  • Loading branch information
oesteban committed Dec 21, 2019
commit 690b783e3c4a41737f21f4f5c67f4eee4064ed63
5 changes: 4 additions & 1 deletion tools/update_changes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ UPCOMING=$?
HEADER="$1 ($(date '+%B %d, %Y'))"
echo $HEADER >> newchanges
echo $( printf "%${#HEADER}s" | tr " " "=" ) >> newchanges
echo "" >> newchanges

if [[ "x$2" != "x" ]]; then
echo "(\`Full changelog <https://github.com/nipy/nipype/milestone/$2?closed=1>\`__)" >> newchanges
fi

# Search for PRs since previous release
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
Expand Down