commit e8d334fa7ac341cc2a414aef2123be15850bf347 parent 7731206b25352d9ae6f4e4c6d4255987c1046624 Author: MTRNord <mtrnord1@gmail.com> Date: Mon, 15 May 2023 12:36:38 +0200 Add changelog managment using towncrier Diffstat:
| A | .github/workflows/newsfile.yml | | | 19 | +++++++++++++++++++ |
| A | changelog.d/.gitkeep | | | 0 | |
| A | towncrier.toml | | | 29 | +++++++++++++++++++++++++++++ |
3 files changed, 48 insertions(+), 0 deletions(-)
diff --git a/.github/workflows/newsfile.yml b/.github/workflows/newsfile.yml @@ -0,0 +1,19 @@ +name: Newsfile + +on: + pull_request: + branches: [ main ] + +jobs: + changelog: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: # Needed for comparison + fetch-depth: 0 + - uses: actions/setup-python@v1 + with: + python-version: '3.9' + - run: pip install towncrier==21.9.0 + - name: ":newspaper: Newsfile" + run: python3 -m towncrier.check --compare-with=origin/main diff --git a/changelog.d/.gitkeep b/changelog.d/.gitkeep diff --git a/towncrier.toml b/towncrier.toml @@ -0,0 +1,29 @@ +[tool.towncrier] + filename = "CHANGELOG.md" + directory = "changelog.d" + issue_format = "[\\#{issue}](https://github.com/MTRNord/cetirizine/issues/{issue})" + + [[tool.towncrier.type]] + directory = "feature" + name = "Features" + showcontent = true + + [[tool.towncrier.type]] + directory = "bugfix" + name = "Bugfixes" + showcontent = true + + [[tool.towncrier.type]] + directory = "doc" + name = "Improved Documentation" + showcontent = true + + [[tool.towncrier.type]] + directory = "removal" + name = "Deprecations and Removals" + showcontent = true + + [[tool.towncrier.type]] + directory = "misc" + name = "Internal Changes" + showcontent = true