model

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommitTemplate = `` /* 265-byte string literal not displayed */

Functions

func GenerateCommitMessage

func GenerateCommitMessage(data CommitRenderData) string

func GetCommitTypeByDisplayName

func GetCommitTypeByDisplayName(displayName string) string

func GetCommitTypePromptValues

func GetCommitTypePromptValues() []string

func ProcessString

func ProcessString(str string, vars interface{}) string

Types

type CommitRenderData

type CommitRenderData struct {
	CommitJiraEnable bool
	CommitJiraId     string
	CommitType       string
	CommitScope      string
	CommitSubject    string
	CommitContent    []string
	CommitDate       string
}

type CommitType

type CommitType struct {
	DisplayName string
	Value       string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL