diff --git a/core/section/github/commits_template.go b/core/section/github/commits_template.go index 59f1021b..bd27dc43 100644 --- a/core/section/github/commits_template.go +++ b/core/section/github/commits_template.go @@ -17,7 +17,14 @@ const commitsTemplate = ` {{if .HasAuthorStats}}
There are 3 contributors across 6 repositories.
++ There + {{if eq 1 (len .AuthorStats)}}is{{else}}are{{end}} + {{len .AuthorStats}} + {{if eq 1 (len .AuthorStats)}}contributor{{else}}contributors{{end}} + across {{.RepoCount}} + {{if eq 1 .RepoCount}} repository. {{else}} repositories. {{end}} +
- {{if $data.IsOpen}} - ` + openMSsvg + ` - {{else}} - ` + closedMSsvg + ` + {{if $data.IsMilestone}} + {{if $data.IsOpen}} + ` + openMSsvg + ` + {{else}} + ` + closedMSsvg + ` + {{end}} {{end}} |
diff --git a/core/section/github/model.go b/core/section/github/model.go
index b9a680fd..7e45be4d 100644
--- a/core/section/github/model.go
+++ b/core/section/github/model.go
@@ -24,6 +24,7 @@ import (
type githubRender struct {
Config githubConfig `json:"config"`
List []githubBranch `json:"list"`
+ RepoCount int `json:"repoCount"`
ShowList bool `json:"showList"`
ShowIssueNumbers bool `json:"showIssueNumbers"`
BranchCommits []githubCommit `json:"branchCommits"`
diff --git a/core/section/github/summary_template.go b/core/section/github/summary_template.go
index ed53e118..545e3786 100644
--- a/core/section/github/summary_template.go
+++ b/core/section/github/summary_template.go
@@ -27,7 +27,12 @@ const summaryTemplate = `
{{if .HasSharedLabels}}
Common Labels-There is 1 shared label across the repositories. +There + {{if eq 1 (len .SharedLabels)}} is {{else}} are {{end}} + {{len .SharedLabels}} + shared + {{if eq 1 (len .SharedLabels)}} label {{else}} labels {{end}} + across the repositories. |