Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NickAkhmetov/CAT-706 Add title to changelog page #3573

Merged
merged 1 commit into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG-cat-706.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Add title to changelog page.
2 changes: 2 additions & 0 deletions context/app/markdown/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Changelog

## v1.12.1 - 2024-10-10

- Prevent collections without a DOI from being counted on the homepage.
Expand Down
6 changes: 5 additions & 1 deletion etc/build/push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ else
VERSION=`cd context && npm version major`
fi


echo "Version: $VERSION"

./grab-dependencies.sh
Expand All @@ -54,13 +55,16 @@ git commit -m "Version bump to $VERSION"

if ls CHANGELOG-*.md; then
(
echo '# Changelog'
echo
echo '##' $VERSION - `date +"%F"`
echo
# "-l" chomps and adds newline.
perl -lpe '' CHANGELOG-*.md
echo
echo
cat CHANGELOG.md
# Skip the first line of the existing changelog (the header).
tail -n +2 context/app/markdown/CHANGELOG.md
) > CHANGELOG.md.new
mv CHANGELOG.md.new context/app/markdown/CHANGELOG.md
git rm CHANGELOG-*.md
Expand Down
Loading