Documentation ¶
Index ¶
- Constants
- Variables
- func DefaultAuthor() string
- func Slug(title string) string
- func TargetUiApi() int
- type Entries
- func (e Entries) Authors() []string
- func (e Entries) Filter(filter func(*Entry) bool) Entries
- func (e Entries) FilterByComponent(component string) Entries
- func (e Entries) FilterByReason(reason Reason) Entries
- func (e Entries) GroupByComponent() map[string]Entries
- func (e Entries) GroupByReason() map[Reason]Entries
- func (e Entries) SortByAuthor() Entries
- func (e Entries) SortByComponent() Entries
- func (e Entries) SortByMergeRequest() Entries
- func (e Entries) SortByReason() Entries
- func (e Entries) SortByTitle() Entries
- type Entry
- type EntryPrompt
- type EntrySerializer
- type Reason
- func (r Reason) Alias() string
- func (r Reason) CapsString() string
- func (r Reason) Description() string
- func (r Reason) IsZero() bool
- func (r Reason) MarshalYAML() (interface{}, error)
- func (r Reason) String() string
- func (r Reason) TitleString() string
- func (r *Reason) UnmarshalJSON(value []byte) error
- func (r *Reason) UnmarshalText(value []byte) error
- func (r *Reason) UnmarshalYAML(value *yaml.Node) error
- type Writer
Constants ¶
View Source
const ( DefaultUnreleasedDir = "changelogs/unreleased" FilenameExtension = ".yml" )
View Source
const UiApi = 1
Variables ¶
View Source
var ( ReasonNames = []string{ "", "added", "fixed", "changed", "deprecated", "removed", "security", "performance", "other", } ReasonDescriptions = []string{ "", "New Features", "Fixed Issues", "Changed Features", "Deprecated Features", "Removed Features", "Security Enhancements", "Performance Enhancements", "Other Changes", } ReasonInstances = []Reason{ ReasonInvalid, ReasonAdded, ReasonFixed, ReasonChanged, ReasonDeprecated, ReasonRemoved, ReasonSecurity, ReasonPerformance, ReasonOther, } )
Functions ¶
func DefaultAuthor ¶
func DefaultAuthor() string
func TargetUiApi ¶
func TargetUiApi() int
Types ¶
type Entries ¶
type Entries []*Entry
func (Entries) FilterByComponent ¶
func (Entries) FilterByReason ¶
func (Entries) GroupByComponent ¶
func (Entries) GroupByReason ¶
func (Entries) SortByAuthor ¶
func (Entries) SortByComponent ¶
func (Entries) SortByMergeRequest ¶
func (Entries) SortByReason ¶
func (Entries) SortByTitle ¶
type Entry ¶
type Entry struct { Title string `yaml:"title"` Author string `yaml:"author"` Reason Reason `yaml:"reason"` Component string `yaml:"component,omitempty"` MergeRequest int `yaml:"merge_request,omitempty"` }
func (*Entry) IsAnonymous ¶
func (*Entry) MergeRequestString ¶
type EntryPrompt ¶
type EntryPrompt struct {
TargetUiApi int
}
func NewEntryPrompt ¶
func NewEntryPrompt(targetUiApi int) *EntryPrompt
type EntrySerializer ¶
type EntrySerializer struct{}
func NewEntrySerializer ¶
func NewEntrySerializer() *EntrySerializer
func (*EntrySerializer) Deserialize ¶
func (s *EntrySerializer) Deserialize(data []byte) (interface{}, error)
func (*EntrySerializer) Serialize ¶
func (s *EntrySerializer) Serialize(entry interface{}) ([]byte, error)
type Reason ¶
type Reason int
func ParseReason ¶
func (Reason) CapsString ¶
func (Reason) Description ¶
func (Reason) MarshalYAML ¶
func (Reason) TitleString ¶
func (*Reason) UnmarshalJSON ¶
func (*Reason) UnmarshalText ¶
func (*Reason) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.