mirror of
https://github.com/git-chglog/git-chglog.git
synced 2026-01-23 02:15:12 +00:00
102 lines
1.4 KiB
Go
102 lines
1.4 KiB
Go
package chglog
|
|
|
|
import "time"
|
|
|
|
// Hash of commit
|
|
type Hash struct {
|
|
Long string
|
|
Short string
|
|
}
|
|
|
|
// Author of commit
|
|
type Author struct {
|
|
Name string
|
|
Email string
|
|
Date time.Time
|
|
}
|
|
|
|
// Committer of commit
|
|
type Committer struct {
|
|
Name string
|
|
Email string
|
|
Date time.Time
|
|
}
|
|
|
|
// Merge ...
|
|
type Merge struct {
|
|
Ref string
|
|
Source string
|
|
}
|
|
|
|
// Revert ...
|
|
type Revert struct {
|
|
Raw string
|
|
Subject string
|
|
Hash string
|
|
}
|
|
|
|
// Ref ...
|
|
type Ref struct {
|
|
Action string
|
|
Ref string
|
|
Source string
|
|
}
|
|
|
|
// Note ...
|
|
type Note struct {
|
|
Title string
|
|
Body string
|
|
}
|
|
|
|
// NoteGroup ...
|
|
type NoteGroup struct {
|
|
Title string
|
|
Notes []*Note
|
|
}
|
|
|
|
// Commit data
|
|
type Commit struct {
|
|
Hash *Hash
|
|
Author *Author
|
|
Committer *Committer
|
|
Merge *Merge
|
|
Revert *Revert
|
|
Refs []*Ref
|
|
Notes []*Note
|
|
Mentions []string
|
|
Header string
|
|
Type string
|
|
Scope string
|
|
Subject string
|
|
Body string
|
|
}
|
|
|
|
// CommitGroup is group of commit
|
|
type CommitGroup struct {
|
|
RawTitle string
|
|
Title string
|
|
Commits []*Commit
|
|
}
|
|
|
|
// RelateTag ...
|
|
type RelateTag struct {
|
|
Name string
|
|
Date time.Time
|
|
}
|
|
|
|
// Tag ...
|
|
type Tag struct {
|
|
Name string
|
|
Date time.Time
|
|
Next *RelateTag
|
|
Previous *RelateTag
|
|
}
|
|
|
|
// Version ...
|
|
type Version struct {
|
|
Tag *Tag
|
|
CommitGroups []*CommitGroup
|
|
MergeCommits []*Commit
|
|
RevertCommits []*Commit
|
|
NoteGroups []*NoteGroup
|
|
}
|