dotapatch.patch

This is the main module the core of dotapatch.

dotapatch.patch.parse(file_path, template='default')[source]

Parses the changelog.

Parameters:
  • file_path (str) – Changelog to be parsed, it can either be filename or absolute_path/filename
  • template (str) – Template to be used as base to parse the changelog, it can either be the name or absolute_path/name
Returns:

status – Parsing status

Return type:

int

Note

status == 0 : Conversion went smoothly

status  < 0 : Critical error

status >= 1 : Some lines under GENERAL section should be reviewed