Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
2c3b75a2
Commit
2c3b75a2
authored
Aug 25, 2016
by
winniehell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add linting for duplicate CHANGELOG versions (!6039)
parent
62516461
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
scripts/lint-doc.sh
scripts/lint-doc.sh
+9
-0
No files found.
scripts/lint-doc.sh
View file @
2c3b75a2
...
@@ -10,6 +10,15 @@ then
...
@@ -10,6 +10,15 @@ then
exit
1
exit
1
fi
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
)
if
[
"
${
DUPLICATE_CHANGELOG_VERSIONS
}
"
!=
""
]
then
echo
'✖ ERROR: Duplicate versions in CHANGELOG:'
>
&2
echo
"
${
DUPLICATE_CHANGELOG_VERSIONS
}
"
>
&2
exit
1
fi
echo
"✔ Linting passed"
echo
"✔ Linting passed"
exit
0
exit
0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment