Skip to content

Commit 849c595

Browse files
authored
Add release scripts (#256)
- Add release note generator - Move update version to scripts/
1 parent 6105d87 commit 849c595

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

scripts/release_note_generator.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
3+
last_version=$(git tag --sort v:refname | tail -n 2 | head -n 1)
4+
echo "Getting commit history since $last_version"
5+
num_commits=$(git rev-list --count $last_version..HEAD)
6+
echo "Found $num_commits commits since last revision"
7+
git_log=$(git log -n $num_commits --pretty="format:* %s %n")
8+
linked_log=$(echo "Release Notes: \n\n$git_log" | sed -e 's/#\([0-9]*\)/[#\1](github.com\/dropbox\/dropbox-sdk-python\/pull\/\1)/g')
9+
echo "\n\n$linked_log"

0 commit comments

Comments
 (0)