Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2017-09-07 16:46:57 +0300
committernachoparker <nacho@ownyourbits.com>2017-09-07 17:08:38 +0300
commitb10410876659e077273f68a4192823623141e211 (patch)
tree3459561f3c29faebd10e327c51d714fc22985e40 /etc
parent4d01fd8182f9d0eac5bdc52fb1b4a3f008d2d5dc (diff)
autogenerate changelog
Diffstat (limited to 'etc')
-rwxr-xr-xetc/library.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/library.sh b/etc/library.sh
index 79d77d9f..58101d22 100755
--- a/etc/library.sh
+++ b/etc/library.sh
@@ -305,6 +305,16 @@ function create_torrent()
createtorrent -a udp://tracker.opentrackr.org -p 1337 -c "NextCloudPi. Nextcloud for Raspberry Pi image" "$1" "$1".torrent
}
+
+function generate_changelog()
+{
+ git log --graph --oneline --decorate \
+ --pretty=format:"[%<(13)%D](https://github.com/nextcloud/nextcloudpi/commit/%h) (%ad) %s" --date=short | \
+ grep 'tag: v' | \
+ sed '/HEAD ->\|origin/s|\[.*\(tag: v[0-9]\+\.[0-9]\+\.[0-9]\+\).*\]|[\1]|' | \
+ sed 's|* \[tag: |\n[|' > changelog.md
+}
+
# License
#
# This script is free software; you can redistribute it and/or modify it