diff --git a/core/section/github/github.go b/core/section/github/github.go index e072ae4f..42fe6366 100644 --- a/core/section/github/github.go +++ b/core/section/github/github.go @@ -15,6 +15,7 @@ import ( "bytes" "encoding/json" "errors" + "fmt" "html/template" "io/ioutil" "net/http" @@ -235,8 +236,8 @@ 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(resp.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() }