Documentation ¶
Index ¶
- type ChangelogSettings
- type CommitLogSettings
- type CommitNotesSettings
- type Config
- type GitSV
- func (g GitSV) Branch() string
- func (g GitSV) Commit(header, body, footer string) error
- func (g GitSV) IsDetached() (bool, error)
- func (g GitSV) LastTag() string
- func (g GitSV) Log(lr LogRange) ([]sv.CommitLog, error)
- func (g GitSV) Tag(version semver.Version) (string, error)
- func (g GitSV) Tags() ([]Tag, error)
- type LogRange
- type LogRangeType
- type ReleaseNotesSettings
- type Settings
- type Tag
- type TagConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangelogSettings ¶
type CommitLogSettings ¶
type CommitNotesSettings ¶
type Config ¶
type Config struct { Version string `yaml:"version"` LogLevel string `yaml:"log-level"` Versioning sv.VersioningConfig `yaml:"versioning"` Tag TagConfig `yaml:"tag"` ReleaseNotes sv.ReleaseNotesConfig `yaml:"release-notes"` Branches sv.BranchesConfig `yaml:"branches"` CommitMessage sv.CommitMessageConfig `yaml:"commit-message"` }
Config cli yaml config.
func GetDefault ¶
func GetDefault() *Config
type GitSV ¶
type GitSV struct { Settings *Settings Config *Config MessageProcessor sv.MessageProcessor CommitProcessor sv.CommitProcessor ReleasenotesProcessor sv.ReleaseNoteProcessor OutputFormatter formatter.OutputFormatter }
Impl git command implementation.
func (GitSV) IsDetached ¶
IsDetached check if is detached.
type LogRange ¶
type LogRange struct {
// contains filtered or unexported fields
}
LogRange git log range.
func NewLogRange ¶
func NewLogRange(t LogRangeType, start, end string) LogRange
NewLogRange LogRange constructor.
type LogRangeType ¶
type LogRangeType string
LogRangeType type of log range.
const ( TagRange LogRangeType = "tag" DateRange LogRangeType = "date" HashRange LogRangeType = "hash" )
constants for log range type.
type ReleaseNotesSettings ¶
type Settings ¶
type Settings struct { LogLevel string ChangelogSettings ChangelogSettings ReleaseNotesSettings ReleaseNotesSettings CommitNotesSettings CommitNotesSettings CommitLogSettings CommitLogSettings }
Click to show internal directories.
Click to hide internal directories.