From 6cca6bf9429e21dc03086a5650e23879cf334a49 Mon Sep 17 00:00:00 2001 From: Andrew Hsu Date: Mon, 23 Jan 2017 19:19:35 -0800 Subject: [PATCH] validate changelog dates are in descending order Signed-off-by: Andrew Hsu --- CHANGELOG.md | 2 +- hack/validate/changelog-date-descending | 12 ++++++++++++ hack/validate/default | 1 + 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100755 hack/validate/changelog-date-descending diff --git a/CHANGELOG.md b/CHANGELOG.md index b1d7404025..bc31eb7a28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ information on the list of deprecated flags and APIs please have a look at https://docs.docker.com/engine/deprecated/ where target removal dates can also be found. -## 1.13.0 (2016-12-08) +## 1.13.0 (2017-01-18) **IMPORTANT**: In Docker 1.13, the managed plugin api changed, as compared to the experimental version introduced in Docker 1.12. You must **uninstall** plugins which you installed with Docker 1.12 diff --git a/hack/validate/changelog-date-descending b/hack/validate/changelog-date-descending new file mode 100755 index 0000000000..2b4556deb3 --- /dev/null +++ b/hack/validate/changelog-date-descending @@ -0,0 +1,12 @@ +#!/bin/bash + +changelogFile=${1:-CHANGELOG.md} + +if [ ! -r "$changelogFile" ]; then + echo "Unable to read file $changelogFile" >&2 + exit 1 +fi + +grep -e '^## ' "$changelogFile" | awk '{print$3}' | sort -c -r || exit 2 + +echo "Congratulations! Changelog $changelogFile dates are in descending order." diff --git a/hack/validate/default b/hack/validate/default index fdd23ffe18..89e9115816 100755 --- a/hack/validate/default +++ b/hack/validate/default @@ -15,3 +15,4 @@ export SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" . $SCRIPTDIR/toml . $SCRIPTDIR/vet . $SCRIPTDIR/changelog-well-formed +. $SCRIPTDIR/changelog-date-descending