Skip to content
Back to top
View this page

# semantic_release.commit_parser.tag module

Legacy commit parser from Python Semantic Release 1.0

class semantic_release.commit_parser.tag.TagCommitParser(options: _OPTS | None = None)

  Bases: `CommitParser`[`ParsedCommit` | `ParseError`, `TagParserOptions`]

  Parse a commit message according to the 1.0 version of python-semantic-release. It expects a tag of some sort in the commit message and will use the rest of the first line as changelog content.

  static get_default_options() → TagParserOptions
  parse(commit: Commit) → ParsedCommit | ParseError | list[ParsedCommit | ParseError]
  parser_options

    alias of `TagParserOptions`

class semantic_release.commit_parser.tag.TagParserOptions(minor_tag: str = ':sparkles:', patch_tag: str = ':nut_and_bolt:')

  Bases: `ParserOptions`

  minor_tag: str = ':sparkles:'
  patch_tag: str = ':nut_and_bolt:'