Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Changelog ¶
type Changelog struct {
Sections []Section `json:"Sections"`
}
Changelog contains Sectionst
type Ghch ¶
type Ghch struct {
RepoPath string `short:"r" long:"repo" default:"." description:"git repository path"`
BaseURL string
GitPath string `short:"g" long:"git" default:"git" description:"git path"`
From string `short:"f" long:"from" description:"git commit revision range start from"`
To string `short:"t" long:"to" description:"git commit revision range end to"`
Latest bool ` long:"latest" description:"output changes between latest two semantic versioned tags"`
Token string ` long:"token" description:"github token"`
Verbose bool `short:"v" long:"verbose"`
Remote string ` long:"remote" default:"origin" description:"default remote name"`
Format string `short:"F" long:"format" description:"json or markdown"`
All bool `short:"A" long:"all" description:"output all changes"`
NextVersion string `short:"N" long:"next-version"`
Write bool `short:"w" description:"write result to file"`
ChangelogMd string
// Tmpl string
OutStream io.Writer
// contains filtered or unexported fields
}
Ghch is main application struct
type Section ¶
type Section struct {
PullRequests []*github.PullRequest `json:"pull_requests"`
FromRevision string `json:"from_revision"`
ToRevision string `json:"to_revision"`
ChangedAt time.Time `json:"changed_at"`
Owner string `json:"owner"`
Repo string `json:"repo"`
HTMLURL string `json:"html_url"`
}
Section contains changes between two revisions
Click to show internal directories.
Click to hide internal directories.