Skip to content

Commit c845bb0

Browse files
committed
Rename towncrier changes dir
1 parent e2ea614 commit c845bb0

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed
File renamed without changes.

odoo_tools/project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def bootstrap_files(opts):
6868
copy_file(source, dest)
6969

7070
# towncrier stuff TODO: move to odoo-template?
71-
path = build_path("./unreleased/.gitkeep")
71+
path = build_path("./changes.d/.gitkeep")
7272
if not path.exists():
7373
os.makedirs(path.parent, exist_ok=True)
7474
run(f"touch {path}")

odoo_tools/templates/towncrier.tmpl.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
[tool.towncrier]
3-
directory = "unreleased"
3+
directory = "changes.d"
44
filename = "HISTORY.rst"
55
template = ".towncrier-template.rst"
66
title_format = ""

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ line-length = 88
7676
skip-string-normalization = "True"
7777

7878
[tool.towncrier]
79-
directory = "unreleased"
79+
directory = "changes.d"
8080
filename = "HISTORY.rst"
8181
template = ".towncrier-template.rst"
8282
title_format = ""

tests/test_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def test_init():
1414
result = runner.invoke(init, catch_exceptions=False)
1515
paths = (
1616
"docker-compose.override.yml",
17-
"unreleased/.gitkeep",
17+
"changes.d/.gitkeep",
1818
"towncrier.toml",
1919
".towncrier-template.rst",
2020
)

tests/test_release.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ def test_bump_changelog():
7171
# run init to get all files ready (eg: bumpversion)
7272
runner.invoke(init, catch_exceptions=False)
7373
changes = (
74-
("Fixed a thing!", "./unreleased/1234.bugfix"),
75-
("Added a thing!", "./unreleased/2345.feature"),
74+
("Fixed a thing!", "./changes.d/1234.bugfix"),
75+
("Added a thing!", "./changes.d/2345.feature"),
7676
)
7777
for change, path in changes:
7878
with open(path, "w") as fd:

0 commit comments

Comments
 (0)