Skip to content

Commit e7382af

Browse files
committed
chore(versioning): add configuration for semantic release
1 parent daf3b44 commit e7382af

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,33 @@ testpaths = ["tests"]
5353

5454
[tool.coverage.run]
5555
source = ["logstructor"]
56+
57+
[tool.semantic_release]
58+
commit_message = "chore(release): {version} [skip ci]\n\nAutomatically generated by python-semantic-release"
59+
commit_parser = "conventional"
60+
major_on_zero = false
61+
allow_zero_version = true
62+
version_toml = ["pyproject.toml:project.version"]
63+
version_variables = ["logstructor/__init__.py:__version__"]
64+
65+
[tool.semantic_release.changelog]
66+
exclude_commit_patterns = ["Merge branch*", "chore(release)*"]
67+
68+
[tool.semantic_release.commit_parser_options]
69+
allowed_tags = [
70+
"build",
71+
"chore",
72+
"ci",
73+
"docs",
74+
"feat",
75+
"fix",
76+
"perf",
77+
"style",
78+
"refactor",
79+
"test",
80+
]
81+
minor_tags = ["feat"]
82+
patch_tags = ["fix", "perf", "refactor"]
83+
84+
[tool.semantic_release.branches.main]
85+
match = "main"

0 commit comments

Comments
 (0)