Documentation
¶
Index ¶
- Constants
- Variables
- func EmojiSummaryToSubject(emoji, summary string) string
- func FileOpen() func(string) (io.Reader, error)
- func MessageToBody(msg string) string
- func MessageToEmoji(msg string) emoji.NullEmoji
- func MessageToSummary(msg string) string
- func UserToAuthor(user repository.User) string
- type Applier
- type Commit
- type Config
- type Emojier
- type Loader
- type Opener
- type Options
- type Placeholders
- type Repoer
- type Request
- type State
Constants ¶
View Source
const ( PlaceholderHash string = "1234567890abcdef1234567890abcdef1234567890" PlaceholderSummary string = "Capitalized, short (50 chars or less) summary" )
Variables ¶
View Source
var PlaceholderMessage string
Functions ¶
func EmojiSummaryToSubject ¶ added in v0.4.0
func MessageToBody ¶ added in v0.4.0
func MessageToEmoji ¶ added in v0.4.0
func MessageToSummary ¶ added in v0.4.0
func UserToAuthor ¶ added in v0.4.0
func UserToAuthor(user repository.User) string
Types ¶
type Applier ¶ added in v0.5.0
type Applier func(repository.Commit, ...func(c *repository.Commit)) error
type Commit ¶
type Placeholders ¶ added in v0.2.0
type Repoer ¶ added in v0.5.0
type Repoer interface {
Open() error
Describe() (repository.Description, error)
}
type Request ¶ added in v0.4.0
type Request struct {
Emoji string
Summary string
Body string
Author repository.User
}
type State ¶ added in v0.5.0
type State struct {
Placeholders Placeholders
Repository repository.Description
Emojis []emoji.Emoji
Config config.Config
Options Options
}
Click to show internal directories.
Click to hide internal directories.