]> 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 53fd6056acf9d5bf4215eab8b1d275474d6175a2..a9f7d6a75a158594fb4d55c1c43ae3233c163add 100755 (executable)
@@ -1,13 +1,8 @@
 #!/bin/sh
-# two modes of operation:
-# 1) git-to-changelog auth-3.3.1.. > log.xml
-#    then edit XML and insert into pdns.xml
-# 2) git log --pretty=format:'g%h: %s' auth-3.3.1.. > log.txt
-#    then edit changelog as plain text
-#    then run git-to-changelog - < log.txt > log.xml
 
-if [ "$1" = "-" ] ; then cat ; else git log --pretty=format:'g%h: %s' "$@" ; fi | perl -pe 's/\#(\d+)/t$1/g; s/(.*)/<listitem>
-  <para>
-    $1
-  <\/para>
-<\/listitem>/;'
+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