Types/ugit.Conventional.Commit/get_Type.ps1

<#
.SYNOPSIS
    Gets Conventional Commit Types
.DESCRIPTION
    Gets the different types of Conventional Commits
.EXAMPLE
    $ugit.ConventionalCommit.Type
.LINK
    https://www.conventionalcommits.org/en/v1.0.0/#specification
#>

param()

if (-not $this.'.Types') {
    $this | Add-Member NoteProperty '.Types' @(
        "feat"      # feature
        "fix"       # bugfix
        "build"     # build related
        "chore"     # chore / code housekeeping
        "ci"        # ci
        "docs"      # documentation
        "style"     # stylistic
        "refactor"  # refactoring
        "release"   # releasing
        "perf"      # performance improvement
        "test"      # tests
        "BREAKING CHANGE" # BREAKING CHANGES
    ) -Force
}
$this.'.Types'