aboutsummaryrefslogtreecommitdiff
path: root/docs/generate-changelog.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docs/generate-changelog.sh')
-rwxr-xr-xdocs/generate-changelog.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/generate-changelog.sh b/docs/generate-changelog.sh
new file mode 100755
index 0000000..1c71490
--- /dev/null
+++ b/docs/generate-changelog.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+dbg() {
+ echo "$@" >&2
+}
+
+THIS_VERSION=$(git describe --tags --abbrev=0 HEAD|tr -d '\n')
+LAST_VERSION=$(git describe --tags --abbrev=0 HEAD^|tr -d '\n')
+echo "**Full Changelog**: <https://github.com/nea89o/Firmament/compare/$LAST_VERSION...$THIS_VERSION>"
+git log --pretty='- %s ~%aN' --grep '[no changelog]' --invert-grep --fixed-strings "$LAST_VERSION..$THIS_VERSION" | sort