Skip to content

Commit

Permalink
automate commit notes
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Feb 16, 2021
1 parent 023214c commit ec5504a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions workflow/scripts/notes_commits.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

# First ="a58299c51609ad"
OLD_VER=$1
NEW_VER=$2
BASE="https://github.com/ktmeaton/ActionRPG/commit"

git log --pretty=oneline --abbrev-commit ${OLD_VER}..${NEW_VER} | \
while read line;
do
hash=`echo $line | cut -d " " -f 1`
msg=`echo $line | sed "s/$hash //g"`
echo -e "* [\`\`\`$hash\`\`\`]($BASE/$hash) $msg";
done;

0 comments on commit ec5504a

Please sign in to comment.