]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Handle changelog in release
authorChocobozzz <me@florianbigard.com>
Thu, 15 Feb 2018 14:59:48 +0000 (15:59 +0100)
committerChocobozzz <me@florianbigard.com>
Thu, 15 Feb 2018 14:59:48 +0000 (15:59 +0100)
CHANGELOG.md [new file with mode: 0644]
scripts/release.sh

diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644 (file)
index 0000000..1e5f7f8
--- /dev/null
@@ -0,0 +1,13 @@
+# Changelog
+
+## v0.0.24-alpha
+
+### Features
+
+* Publish comments with *ctrl + enter*
+
+### Bug fixes
+
+* Don't stuck on active jobs
+* Fix deleting a video with comments
+* Fix infinite scroll (videos list)
index 0e288a49c526e6d3b8d67841af851d10efdfc635..d9ad6c54b461432adee23a0a1818e99d462e4560 100755 (executable)
@@ -31,6 +31,19 @@ version="v$1"
 directory_name="peertube-$version"
 zip_name="peertube-$version.zip"
 
+changelog=$(awk -v version="$version" '/## v/ { printit = $2 == version }; printit;' CHANGELOG.md | grep -v "$version" | sed '1{/^$/d}')
+
+echo "Changelog will be:\n"
+echo "$changelog"
+echo
+
+read -p "Are you sure to release? " -n 1 -r
+echo
+if [[ ! $REPLY =~ ^[Yy]$ ]]
+then
+  [[ "$0" = "$BASH_SOURCE" ]] && exit 0
+fi
+
 cd ./client || exit -1
 npm version --no-git-tag-version --no-commit-hooks $1 || exit -1
 
@@ -60,7 +73,7 @@ cd "PeerTube" || exit -1
 
 git push origin --tag
 
-github-release release --user chocobozzz --repo peertube --tag "$version" --name "$version"
+github-release release --user chocobozzz --repo peertube --tag "$version" --name "$version" --description "$changelog"
 github-release upload --user chocobozzz --repo peertube --tag "$version" --name "$zip_name" --file "$zip_name"
 
 git push origin develop