Skip to content

Commit

Permalink
ci: automate generation of release notes
Browse files Browse the repository at this point in the history
via standard-version to CHANGELOG.md.
  • Loading branch information
sbrugman authored and Simon Brugman committed Jun 23, 2021
1 parent 8b43e22 commit 9fb3c08
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .versionrc.json
@@ -0,0 +1,16 @@
{
"header": "Release notes",
"types": [
{"type": "feat", "section": "\uD83C\uDF89 Features"},
{"type": "fix", "section": "\uD83D\uDC1B Bug fixes"},
{"type": "perf", "section": "⚡ Performance improvements"},
{"type": "docs", "section": "\uD83D\uDCD6 Documentation"},
{"type": "style", "section": "\uD83D\uDC77\u200D♂️ Internal improvements"},
{"type": "refactor", "section": "\uD83D\uDC77\u200D♂️ Internal improvements"},
{"type": "build", "section": "⬆️ Dependencies"},
{"type": "chore", "hidden": true},
{"type": "test", "hidden": true}
],
"commitUrlFormat": "https://github.com/ing-bank/popmon/commits/{{hash}}",
"compareUrlFormat": "https://github.com/ing-bank/popmon/compare/{{previousTag}}...{{currentTag}}"
}
1 change: 1 addition & 0 deletions CHANGELOG.md
@@ -0,0 +1 @@
# Release notes
2 changes: 2 additions & 0 deletions CHANGES.rst
Expand Up @@ -2,6 +2,8 @@
Release notes
=============

The release notes for more recent versions have move to `CHANGELOG.md <CHANGELOG.md>`_

Version 0.4.0 (16-04-2021)
--------------------------
Documentation:
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Expand Up @@ -3,3 +3,6 @@ lint:

install:
pip install -e .

changelog:
npm run release
5 changes: 5 additions & 0 deletions make.bat
Expand Up @@ -12,5 +12,10 @@ IF "%1%" == "install" (
GOTO end
)

if "%1%" == "changelog" (
npm run release
GOTO end
)

ECHO "No command matched"
:end
12 changes: 12 additions & 0 deletions package.json
@@ -0,0 +1,12 @@
{
"scripts": {
"release": "standard-version"
},
"standard-version": {
"skip": {
"bump": true,
"commit": true,
"tag": true
}
}
}

0 comments on commit 9fb3c08

Please sign in to comment.