Skip to content

Commit

Permalink
Fix changelog creation
Browse files Browse the repository at this point in the history
  • Loading branch information
esamattis committed May 7, 2019
1 parent 034ea47 commit 6792f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/release
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ echo "Current version is: $current_version"

read -p "New version> " new_version

changelog="$(git log --format='%s %h' v${new_version}...v${current_version})"

sed -E -i "" "s/(.*Version:) .*/\1 ${new_version}/" wp-graphql-polylang.php

Expand All @@ -46,4 +45,5 @@ git tag -a "v${new_version}" -m "Release v${new_version}"
git push origin master:master
git push origin --tags

changelog="$(git log --format='%s %h' v${new_version}...v${current_version})"
open "https://github.com/valu-digital/wp-graphql-polylang/releases/new?title=v${new_version}&tag=v${new_version}&body=${changelog}"

0 comments on commit 6792f01

Please sign in to comment.