diff --git a/core/section/github/commits.go b/core/section/github/commits.go index fbb2dbe5..b8e27db8 100644 --- a/core/section/github/commits.go +++ b/core/section/github/commits.go @@ -59,74 +59,49 @@ func (s asToSort) Less(i, j int) bool { return s[i].CommitCount > s[j].CommitCount } -const tagCommitsData = "commitsData" +// sort branches in order that that should be presented. +type branchByID []githubBranch -func init() { - reports[tagCommitsData] = report{refreshCommits, renderCommits, ` -
- | Author | -Open Issues | -Closed Issues | -#commits | -Branches | -
---|---|---|---|---|---|
-
-
- |
- {{$stats.Author}} | -{{$stats.OpenIssues}} | -{{$stats.ClosedIssues}} | -{{$stats.CommitCount}} | -- {{range $repo := $stats.Repos}} - {{$repo}} - {{end}} - | -
+ | Author | +Open Issues | +Closed Issues | +#commits | +Branches | +
---|---|---|---|---|---|
+
+
+ |
+ {{$stats.Author}} | +{{$stats.OpenIssues}} | +{{$stats.ClosedIssues}} | +{{$stats.CommitCount}} | +
+ {{range $repo := $stats.Repos}}
+ {{$repo}} + {{end}} + |
+
- {{if .ShowList}} - Including issues labelled - {{range $label := .List}} - {{if $label.Included}} - {{$label.Name}} - {{end}} - {{end}} - {{end}} -
-+ {{if .ShowList}} + Including issues labelled + {{range $label := .List}} + {{if $label.Included}} + {{$label.Name}} + {{end}} + {{end}} + {{end}} +
+