diff --git a/changelog.sh b/changelog.sh index 963236b22..702c34189 100755 --- a/changelog.sh +++ b/changelog.sh @@ -3,7 +3,8 @@ set -e base="./changelog.d" +branch=$(git rev-parse --abbrev-ref HEAD) -new_item="${base}/$(date '+%Y%m%d_%H%M%S')_$(git rev-parse --abbrev-ref HEAD)_scriv.md" +new_item="${base}/$(date '+%Y%m%d_%H%M%S')_${branch/\//\-}_scriv.md" cp "${base}/new_fragment.md.j2" ${new_item} $EDITOR $new_item