Skip to content

Commit

Permalink
Add towncrier
Browse files Browse the repository at this point in the history
Signed-off-by: Half-Shot <[email protected]>
  • Loading branch information
Half-Shot committed Jan 24, 2020
1 parent 620b544 commit 559c526
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
0.1.0 (2020-01-24)
===================

Features
--------

- Start tracking releases and using Towncrier. ([\#86](https://github.com/matrix-org/matrix-bifrost/issues/86))
Empty file added changelog.d/.keep
Empty file.
1 change: 1 addition & 0 deletions changelog.d/86.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Start tracking releases and using Towncrier.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"start": "node build/src/Program.js -c config.yaml",
"genreg": "node build/src/Program.js -r -c config.yaml",
"test": "npm run build && mocha --recursive build/test",
"changelog": "scripts/towncrier.sh",
"coverage": "nyc mocha --require ts-node/register --require source-map-support/register --full-trace --bail test/**/*.ts test/*.ts"
},
"repository": {
Expand Down
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-bifrost/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/towncrier.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 559c526

Please sign in to comment.