Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
climix
climix
Commits
4c715bf0
Commit
4c715bf0
authored
Feb 20, 2020
by
Klaus Zimmermann
Browse files
Add changelog utility scripts (closes #172)
parent
0f3c73dc
Changes
2
Hide whitespace changes
Inline
Side-by-side
utils/generate-changelog.sh
0 → 100755
View file @
4c715bf0
#!/bin/bash
for
tag
in
$(
git tag
-l
--sort
=
-version
:refname
)
do
pre
=
$(
git describe
--abbrev
=
0
$tag
^ 2>/dev/null
)
tag_date
=
$(
git log
-1
--format
=
%ad
--date
=
short
$tag
)
echo
"## [
$tag
] -
$tag_date
"
echo
"### Added"
echo
"### Changed"
echo
"### Deprecated"
echo
"### Removed"
echo
"### Fixed"
echo
"### Security"
git shortlog
$pre
..
$tag
done
utils/update-changelog.sh
0 → 100755
View file @
4c715bf0
#!/bin/bash
tag
=
$1
pre
=
$(
git describe
--abbrev
=
0 2>/dev/null
)
tag_date
=
$(
git log
-1
--format
=
%ad
--date
=
short
)
echo
-e
"## [
$tag
] -
$tag_date
\n
"
echo
-e
"### Added
\n
"
echo
-e
"### Changed
\n
"
echo
-e
"### Deprecated
\n
"
echo
-e
"### Removed
\n
"
echo
-e
"### Fixed
\n
"
echo
-e
"### Security
\n\n
"
git shortlog
$pre
..
Write
Preview
Supports
Markdown
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