Documentation
¶
Overview ¶
Package commit contains the logic for interacting with git, commits and github.
Index ¶
- Variables
- func ParseGroups(logs []string) string
- type Git
- func (g Git) Commits(ctx context.Context, tag1, tag2 string) ([]string, error)
- func (g Git) LatestTag(ctx context.Context) (string, error)
- func (g Git) PreviousTag(ctx context.Context, tag string) (string, error)
- func (g Git) Release(ctx context.Context, token, user, repo, tag, desc string) error
- func (g Git) RepoInfo(ctx context.Context) (user, repo string, err error)
- type Group
Constants ¶
This section is empty.
Variables ¶
View Source
var ItemPrefix = "- "
ItemPrefix is the markdown prefix before each item.
Functions ¶
func ParseGroups ¶
ParseGroups parses the lines in the logs and returns them as a string.
Types ¶
type Git ¶
Git executes git processes targeted at a directory. If the Dir property is empty, all calls will be on the current folder.
func (Git) PreviousTag ¶
PreviousTag returns the previous tag of the given tag.
type Group ¶
type Group struct { Verb string Subject string Description string Breaking bool // contains filtered or unexported fields }
A Group is a commit with all of its messages.
func GroupFromCommit ¶
GroupFromCommit creates a Group object from the given line.
func (Group) DescriptionString ¶
DescriptionString returns a string that is suitable for printing a line in a Group.
Click to show internal directories.
Click to hide internal directories.