diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-10-16 20:29:45 +0200 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-10-16 21:05:24 +0200 |
commit | 9f7a7115a4c7b90e0203516f5aabf913ce02cbfe (patch) | |
tree | 6ae8abe8c0808a3449ac4569effa0532fd03c3ff /scripts | |
parent | f1fd2e4bab5485dc5b2073b7589378cd6c259cfb (diff) | |
download | gitlab-ce-9f7a7115a4c7b90e0203516f5aabf913ce02cbfe.tar.gz |
Convert CHANGELOG to Markdown
All this does is convert the version sections into headers. The list
items shouldn't really be indented by two spaces, but it makes no
difference to the rendering and this way we retain authorship history
for the actual changes.
Related to https://gitlab.com/gitlab-org/release-tools/merge_requests/29
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/lint-doc.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lint-doc.sh b/scripts/lint-doc.sh index fb4d8463981..7c4e8276902 100755 --- a/scripts/lint-doc.sh +++ b/scripts/lint-doc.sh @@ -10,11 +10,11 @@ then exit 1 fi -# Ensure that the CHANGELOG does not contain duplicate versions -DUPLICATE_CHANGELOG_VERSIONS=$(grep --extended-regexp '^v [0-9.]+' CHANGELOG | sed 's| (unreleased)||' | sort | uniq -d) +# Ensure that the CHANGELOG.md does not contain duplicate versions +DUPLICATE_CHANGELOG_VERSIONS=$(grep --extended-regexp '^## .+' CHANGELOG.md | sed -E 's| \(.+\)||' | sort -r | uniq -d) if [ "${DUPLICATE_CHANGELOG_VERSIONS}" != "" ] then - echo '✖ ERROR: Duplicate versions in CHANGELOG:' >&2 + echo '✖ ERROR: Duplicate versions in CHANGELOG.md:' >&2 echo "${DUPLICATE_CHANGELOG_VERSIONS}" >&2 exit 1 fi |