From 26a548598b965a7c4da0c0bd150a87bc9330b832 Mon Sep 17 00:00:00 2001 From: EnesAlili Date: Thu, 29 Sep 2016 14:43:50 +0100 Subject: [PATCH] Removed debug and cleaned up commits table --- core/section/github/commits_template.go | 4 ++-- core/section/github/github.go | 8 ++++---- core/section/github/milestones_template.go | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/section/github/commits_template.go b/core/section/github/commits_template.go index 20a80333..09caf910 100644 --- a/core/section/github/commits_template.go +++ b/core/section/github/commits_template.go @@ -81,13 +81,13 @@ const commitsTemplate = ` {{$commit.Message}} + {{$commit.Branch}}
@{{$commit.Name}} {{$commit.Name}} - {{if $commit.ShowDate}} · {{$commit.Date}} {{end}} - {{if $commit.ShowBranch}} · {{$commit.Repo}}:{{$commit.Branch}}{{end}} + · {{$commit.Date}}
diff --git a/core/section/github/github.go b/core/section/github/github.go index 42fe6366..26bebe2e 100644 --- a/core/section/github/github.go +++ b/core/section/github/github.go @@ -15,7 +15,7 @@ import ( "bytes" "encoding/json" "errors" - "fmt" + //"fmt" "html/template" "io/ioutil" "net/http" @@ -236,9 +236,9 @@ func (p *Provider) Render(ctx *provider.Context, config, data string) string { if err != nil { log.Error("github render template.Parse error:", err) - for k, v := range strings.Split(rep.template, "\n") { - fmt.Println("DEBUG", k+1, v) - } + //for k, v := range strings.Split(rep.template, "\n") { + // fmt.Println("DEBUG", k+1, v) + //} return "Documize internal github template.Parse error: " + err.Error() } diff --git a/core/section/github/milestones_template.go b/core/section/github/milestones_template.go index 653d232b..a98316e3 100644 --- a/core/section/github/milestones_template.go +++ b/core/section/github/milestones_template.go @@ -33,7 +33,7 @@ const ( -
Milestones {{.ClosedMS}} {{if eq 1 .ClosedMS}} closed and {{.OpenMS}} {{if eq 1 .OpenMS}} open + Milestones {{.ClosedMS}} closed and {{.OpenMS}} open