Browse Source

Merge branch '6-bring-towncrier-to-the-repo' into 'develop'

Resolve "Bring towncrier to the Repo"

Closes #6

See merge request funkwhale/funkwhale-android!22
housekeeping/remove-warnings
Georg Krause 3 years ago
parent
commit
1f128f737d
  1. 0
      changes/changelog.d/.gitkeep
  2. 29
      changes/template.rst
  3. 43
      towncrier.toml

0
changes/changelog.d/.gitkeep

29
changes/template.rst

@ -0,0 +1,29 @@ @@ -0,0 +1,29 @@
{% for section, _ in sections.items() %}
{% if sections[section] %}
{% for category, val in definitions.items() if category in sections[section]%}
{{ definitions[category]['name'] }}:
{% if definitions[category]['showcontent'] %}
{% for text in sections[section][category].keys()|sort() %}
- {{ text }}
{% endfor %}
{% else %}
- {{ sections[section][category]['']|join(', ') }}
{% endif %}
{% if sections[section][category]|length == 0 %}
No significant changes.
{% else %}
{% endif %}
{% endfor %}
{% else %}
No significant changes.
{% endif %}
{% endfor %}

43
towncrier.toml

@ -0,0 +1,43 @@ @@ -0,0 +1,43 @@
[tool.towncrier]
package = "changes"
package_dir = ""
filename = "CHANGELOG"
directory = "changes/changelog.d/"
start_string = ".. towncrier\n"
template = "changes/template.rst"
issue_format = ""
title_format = "{version} (unreleased)"
underlines = "-"
[[tool.towncrier.section]]
path = ""
[[tool.towncrier.type]]
directory = "feature"
name = "Features"
showcontent = true
[[tool.towncrier.type]]
directory = "enhancement"
name = "Enhancements"
showcontent = true
[[tool.towncrier.type]]
directory = "bugfix"
name = "Bugfixes"
showcontent = true
[[tool.towncrier.type]]
directory = "doc"
name = "Documentation"
showcontent = true
[[tool.towncrier.type]]
directory = "i18n"
name = "i18n"
showcontent = true
[[tool.towncrier.type]]
directory = "misc"
name = "Other"
showcontent = true
Loading…
Cancel
Save