]> granicus.if.org Git - pdns/commitdiff
Fix PR links in the changelog
authorPieter Lexis <pieter.lexis@powerdns.com>
Tue, 10 Jan 2017 13:50:19 +0000 (14:50 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Tue, 10 Jan 2017 13:50:19 +0000 (14:50 +0100)
Add checking for this to process-md.sh

Closes #4850

docs/markdown/changelog.raw.md
docs/process-md.sh

index fc467a648249c327f8e0866b2bad353e143b8ce0..e4da837adb32f53475c0cd80e34bba6b65245883 100644 (file)
@@ -252,7 +252,7 @@ This release features many low-level performance fixes. Other notable changes si
 ### Improvements
 
 - [#3435](https://github.com/PowerDNS/pdns/pull/3435) Add `toStringNoDot` and `chopOff` functions to Lua
-- [#3437](https://github.com/PowerDNS/pdns/pull/3352) Add `pdns.now` timeval struct to recursor Lua
+- [#3437](https://github.com/PowerDNS/pdns/pull/3437) Add `pdns.now` timeval struct to recursor Lua
 - [#3352](https://github.com/PowerDNS/pdns/pull/3352) Cache improvements
 - [#3502](https://github.com/PowerDNS/pdns/pull/3502) Make second argument to pdnslog optional (Thiago Farina)
 - [#3520](https://github.com/PowerDNS/pdns/pull/3520) Reduce log level of periodic statistics to notice (Jan Broers)
@@ -375,9 +375,9 @@ Released May 11th 2016
 Notable changes since 4.0.0-alpha2
 
 - [#3415](https://github.com/PowerDNS/pdns/pull/3415) pdnsutil: add clear-zone command
-- [#3586](https://github.com/PowerDNS/pdns/pull/3415) Remove send-root-referral option
-- [#3578](https://github.com/PowerDNS/pdns/pull/3415) Add disable-syslog option
-- [#3733](https://github.com/PowerDNS/pdns/pull/3415) ALIAS improvements: DNSSEC and optional on-AXFR expansion of records
+- [#3586](https://github.com/PowerDNS/pdns/pull/3586) Remove send-root-referral option
+- [#3578](https://github.com/PowerDNS/pdns/pull/3578) Add disable-syslog option
+- [#3733](https://github.com/PowerDNS/pdns/pull/3733) ALIAS improvements: DNSSEC and optional on-AXFR expansion of records
 - [#3764](https://github.com/PowerDNS/pdns/pull/3764) Notify support for systemd
 - [#3807](https://github.com/PowerDNS/pdns/pull/3807) Add TTL settings for DNSSECKeeper's caches
 
@@ -399,7 +399,7 @@ Notable changes since 4.0.0-alpha2
 - [#3637](https://github.com/PowerDNS/pdns/pull/3637), [#3678](https://github.com/PowerDNS/pdns/pull/3678), [#3740](https://github.com/PowerDNS/pdns/pull/3740) Correct root-zone slaving and serving (Kees Monshouwer and others)
 - [#3495](https://github.com/PowerDNS/pdns/pull/3495) API: Add discovery endpoint (Christian Hofstaedtler)
 - [#3389](https://github.com/PowerDNS/pdns/pull/3389) pdnsutil: support chroot
-- [#3596](https://github.com/PowerDNS/pdns/pull/3396) Remove botan-based ecdsa and rsa signers (Kees Monshouwer)
+- [#3596](https://github.com/PowerDNS/pdns/pull/3596) Remove botan-based ecdsa and rsa signers (Kees Monshouwer)
 - [#3478](https://github.com/PowerDNS/pdns/pull/3478), [#3603](https://github.com/PowerDNS/pdns/pull/3603), [#3628](https://github.com/PowerDNS/pdns/pull/3628) Various build system improvements (Ruben Kerkhof)
 - [#3621](https://github.com/PowerDNS/pdns/pull/3621) Always lowercase when inserting into the database
 - [#3651](https://github.com/PowerDNS/pdns/pull/3651) Rename PUBLISH\_\* to PUBLISH-\* domainmetadata
@@ -409,7 +409,7 @@ Notable changes since 4.0.0-alpha2
 - [#3720](https://github.com/PowerDNS/pdns/pull/3720) Many fixes for dnswasher (Robert Edmonds)
 - [#3707](https://github.com/PowerDNS/pdns/pull/3707), [#3788](https://github.com/PowerDNS/pdns/pull/3788) Make MySQL timeout configurable (Kees Monshouwer and Brynjar Eide)
 - [#3806](https://github.com/PowerDNS/pdns/pull/3806) Move key validity check out of `fromISCMap()`, improves DNSSEC performance
-- [#3820](https://github.com/PowerDNS/pdns/pull/3806) pdnsutil load-zone: ignore double SOA
+- [#3820](https://github.com/PowerDNS/pdns/pull/3820) pdnsutil load-zone: ignore double SOA
 
 ## PowerDNS Authoritative Server 4.0.0-alpha2
 Released February 25th 2016
index ce69c9188b482367a9bb603c25f2293f6663e926..188dee28dddc28e451d210bd5af1bbb3474686e8 100755 (executable)
@@ -1,6 +1,13 @@
 #!/bin/sh -e
 
 pre() {
+  # Test if there are wrong PR links in the changelog
+  CL_PR_LINKS="$(grep -E '\[#([0-9]+)\]\(.*[0-9]+\)' markdown/changelog.raw.md | grep -v -E '\[#([0-9]+)\]\(.*\1\)' || true)"
+  if [ -n "${CL_PR_LINKS}" ]; then
+    echo "Broken PR links in the changelog:" >&2
+    echo "${CL_PR_LINKS}" >&2
+    exit 1
+  fi
   for file in `find doc-build -name '*.md' -type f -print`; do
     # Remove lines starting with '%' from manpages
     if echo "$file" | grep -q -e '\.1\.md$'; then