diff --git a/CHANGES.rst b/CHANGES.rst index 09fabd7d0..3b9a77389 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,10 @@ +1.0.7 (February 13, 2018) +========================= + + * [FIX] Write latest BOLD mask out (space-T1w) (#978) + * [PIN] Updating niworkflows to 0.3.1 (#962) + * [FIX] Robuster BOLD mask (#966) + 1.0.6 (29th of January 2018) ============================ diff --git a/fmriprep/info.py b/fmriprep/info.py index dd56849cf..e85abfc67 100644 --- a/fmriprep/info.py +++ b/fmriprep/info.py @@ -5,7 +5,7 @@ Base module variables """ -__version__ = '1.0.6' +__version__ = '1.0.7' __author__ = 'The CRN developers' __copyright__ = 'Copyright 2018, Center for Reproducible Neuroscience, Stanford University' __credits__ = ['Craig Moodie', 'Ross Blair', 'Oscar Esteban', 'Chris Gorgolewski', diff --git a/update_changes.sh b/update_changes.sh new file mode 100644 index 000000000..2b258a22c --- /dev/null +++ b/update_changes.sh @@ -0,0 +1,42 @@ +#!/bin/bash +# +# Collects the pull-requests since the latest release and +# aranges them in the CHANGES.rst.txt file. +# +# This is a script to be run before releasing a new version. +# +# Usage /bin/bash update_changes.sh 1.0.1 +# + +# Setting # $ help set +set -u # Treat unset variables as an error when substituting. +set -x # Print command traces before executing command. + +# Check whether the Upcoming release header is present +head -1 CHANGES.rst | grep -q Upcoming +UPCOMING=$? +if [[ "$UPCOMING" == "0" ]]; then + head -n3 CHANGES.rst >> newchanges +fi + +# Elaborate today's release header +HEADER="$1 ($(date '+%B %d, %Y'))" +echo $HEADER >> newchanges +echo $( printf "%${#HEADER}s" | tr " " "=" ) >> newchanges +echo "" >> newchanges + +# 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\ .*/(\#\1)/' >> newchanges +echo "" >> newchanges +echo "" >> newchanges + +# Add back the Upcoming header if it was present +if [[ "$UPCOMING" == "0" ]]; then + tail -n+4 CHANGES.rst >> newchanges +else + cat CHANGES.rst >> newchanges +fi + +# Replace old CHANGES.rst with new file +mv newchanges CHANGES.rst +