]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - build-scripts/git-to-changelog
auth: Check that the domain exists in pdnsutil check-zone
[thirdparty/pdns.git] / build-scripts / git-to-changelog
index 8100a7ded9b907b750d8371ce98ae66fc7ee2de9..a9f7d6a75a158594fb4d55c1c43ae3233c163add 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
-git log --pretty=format:'<listitem>
-  <para>
-    g%h: %s
-  </para>
-</listitem>' "$@" | perl -pe 's/\#(\d+)/t$1/g'
+
+if [ "$1" = "-" ]; then
+  cat
+else
+  git log --no-merges --pretty=format:'- [commit %h](https://github.com/PowerDNS/pdns/commit/%h): %s (%an)' "$@" |\
+    perl -pe 's!#([[:digit:]]+)![ticket #\1](https://github.com/PowerDNS/pdns/issues/\1)!g;'
+fi