Skip to content

Commit

Permalink
feat: exclude commit patterns in changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
anayeaye committed Sep 13, 2023
1 parent ee298a4 commit c2b14d8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/deleteme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- name: Python Semantic Release
uses: python-semantic-release/python-semantic-release@master
with:
root_options: "--noop --no-changelog"
changelog: "false"
vcs-release: "true"
github_token: ${{ secrets.GITHUB_TOKEN }}

17 changes: 17 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,23 @@ allowed_tags = ["build", "chore", "ci", "docs", "feat", "fix", "perf", "style",
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]

[tool.semantic_release.changelog]
exclude_commit_patterns = ["^(?!(build|chore|ci|docs|feat|fix|perf|style|refactor|test)(:|\(|!| )).*$"]

[tool.semantic_release.changelog.environment]
block_start_string = "{%"
block_end_string = "%}"
variable_start_string = "{{"
variable_end_string = "}}"
comment_start_string = "{#"
comment_end_string = "#}"
trim_blocks = false
lstrip_blocks = false
newline_sequence = "\n"
keep_trailing_newline = false
extensions = []
autoescape = true

[tool.semantic_release.remote]
name = "origin"
type = "github"
Expand Down

0 comments on commit c2b14d8

Please sign in to comment.