sort_by

Format string passed to git tag --sort= command to sort the output.

Used by Release is a git tag versioning schema to get the latest tag in the current branch.

Note

This option is completely ignored if Read some file content as current version schema is used. This is because all tags are set on master / main branch, so commits to other branches like develop are tagless.

Note

This option is completely ignored if Execute some callback function to get current version schema is used, because git commit history is not fetched in such a case.

Type

str

Default value

"creatordate"

Possible values

  • "creatordate" (either commit date or tag creation date)

  • "version:refname" (alphanumeric sort by tag name)

    Warning

    This field can produce wrong version numbers in some cases, not recommended to use

  • "committerdate" (commit date of commit tag)

    Warning

    This field is missing in case of annotated tags, not recommended to use

  • "taggerdate" (annotated tag creation date)

    Warning

    This field is missing in case of commit tags, not recommended to use

See also