Skip to content

Commit

Permalink
Merge pull request #168 from matrix-org/hs/towncrier
Browse files Browse the repository at this point in the history
Add towncrier files
  • Loading branch information
Half-Shot authored Jun 25, 2020
2 parents d17fb0b + 7c4fb8f commit 7e828e2
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/168.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use `towncrier` for changelog tracking
Empty file added changelog.d/git.keep
Empty file.
30 changes: 30 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[tool.towncrier]
# The name of your Python package
filename = "CHANGELOG.md"
directory = "changelog.d"
issue_format = "[\\#{issue}](https://github.com/matrix-org/matrix-appservice-bridge/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
3 changes: 3 additions & 0 deletions scripts/changelog-check.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
pip3 install towncrier==19.2.0
python3 -m towncrier.check --compare-with=origin/develop
3 changes: 3 additions & 0 deletions scripts/changelog-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
VERSION=`python3 -c "import json; f = open('./package.json', 'r'); v = json.loads(f.read())['version']; f.close(); print(v)"`
towncrier --version $VERSION $1

0 comments on commit 7e828e2

Please sign in to comment.