Skip to content

Commit

Permalink
feat: gen change log sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvictor committed Mar 27, 2023
1 parent c510a86 commit 6f103da
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions changelog.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
while read -r line
do
message=$(echo "$line" | cut -d '(' -f1 | xargs)
author_name=$(echo "$line" | cut -d '(' -f2 | cut -d '<' -f1 | xargs)
author_email=$(echo "$line" | cut -d '<' -f2 | cut -d '>' -f1 | xargs)
echo "$line" > .changelog &&
git add .changelog &&
git commit -m "$message" --author="$author_name <$author_email>"
done < changelog

0 comments on commit 6f103da

Please # to comment.