diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-09-07 16:46:57 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-09-07 17:08:38 +0300 |
commit | b10410876659e077273f68a4192823623141e211 (patch) | |
tree | 3459561f3c29faebd10e327c51d714fc22985e40 /etc | |
parent | 4d01fd8182f9d0eac5bdc52fb1b4a3f008d2d5dc (diff) |
autogenerate changelog
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/library.sh | 10 |
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 |