diff --git a/documize/section/github/github.go b/documize/section/github/github.go index 0714f3c9..bfbfcc98 100644 --- a/documize/section/github/github.go +++ b/documize/section/github/github.go @@ -426,10 +426,11 @@ func (*Provider) getIssues(client *gogithub.Client, config githubConfig) ([]gith ret = append(ret, githubIssue{ Name: n, Message: *v.Title, - Date: v.UpdatedAt.Format("January 2 2006, 15:04"), + Date: v.CreatedAt.Format("January 2 2006, 15:04"), Avatar: a, URL: template.URL(*v.HTMLURL), Labels: template.HTML(l), + ID: *v.Number, }) } diff --git a/documize/section/github/model.go b/documize/section/github/model.go index 21b3f7bf..647d9502 100644 --- a/documize/section/github/model.go +++ b/documize/section/github/model.go @@ -86,12 +86,14 @@ var renderTemplates = map[string]string{
  • - @{{$data.Name}} -
    + + + +
    -
    {{$data.Message}}
    +
    {{$data.Message}} {{$data.Labels}}
    - {{$data.Name}} committed on {{$data.Date}} {{$data.Labels}} + #{{$data.ID}} opened on {{$data.Date}} by {{$data.Name}}
    @@ -173,6 +175,7 @@ type githubCommit struct { } type githubIssue struct { + ID int `json:"id"` Date string `json:"date"` Message string `json:"message"` URL template.URL `json:"url"`