Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHead ¶
func GetHead(mrs []*MergeRequest, head string) string
func GetSQL ¶
func GetSQL(mrs []*MergeRequest) string
func GroupByPrefix ¶
func GroupByPrefix(mrs []*MergeRequest) map[string][]*MergeRequest
Types ¶
type Diff ¶
type GitClient ¶
type GitClient interface { GetTags() []*Tag GetMergeRequests(from, end *Tag) []*MergeRequest CreateTag(tag string, desc string) GetMRChanges(mr *MergeRequest) }
type MergeRequest ¶
type MergeRequest struct { ID int IID int Title string `json:"title"` MergedAt *time.Time `json:"merged_at"` Description string `json:"description"` Changes []Diff Author string `json:"author"` SHA string `json:"sha"` WebURL string `json:"web_url"` }
func (*MergeRequest) GetChangeSQL ¶
func (m *MergeRequest) GetChangeSQL() string
func (*MergeRequest) GetHeadChange ¶
func (m *MergeRequest) GetHeadChange(title string) string
Click to show internal directories.
Click to hide internal directories.