Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Change ¶
type Change struct { // Fetched from git log. Hash string Author string Subject string Body string Issues []int // Resolved from GitHub. Username string }
Change represents a git commit.
type Changes ¶
type Changes []Change
Changes represents a list of git commits.
func CollectChanges ¶
CollectChanges collects changes according to the given options. If opts.ResolveUserName is set, it will be used to resolve Change.Username (e.g. GitHub login).
type Options ¶
type Options struct { // Can be nil. // ResolveUserName returns the username for the given author (email address) and commit sha. // This is the GitHub login (e.g. bep) in its first iteration. ResolveUserName func(commit, author string) (string, error) // All of these can be empty. PrevTag string Tag string Commitish string RepoPath string }
Options for collecting changes.
type TitleChanges ¶
TitleChanges represents a list of changes grouped by title.
func GroupByTitleFunc ¶ added in v0.11.0
GroupByTitleFunc groups g by title according to the grouping function f. If f returns false, that change item is not included in the result.
Click to show internal directories.
Click to hide internal directories.