mirror of
https://github.com/documize/community.git
synced 2025-07-21 22:29:41 +02:00
Add issue creator real names
This commit is contained in:
parent
049ff73825
commit
b419bd2d52
4 changed files with 34 additions and 21 deletions
|
@ -28,6 +28,7 @@ type githubIssue struct {
|
|||
Message string `json:"message"`
|
||||
URL template.URL `json:"url"`
|
||||
Name string `json:"name"`
|
||||
Creator string `json:"creator"`
|
||||
Avatar string `json:"avatar"`
|
||||
Labels template.HTML `json:"labels"`
|
||||
LabelNames []string `json:"labelNames"`
|
||||
|
@ -152,6 +153,7 @@ func getIssues(client *gogithub.Client, config *githubConfig) ([]githubIssue, er
|
|||
l, ln, lc := wrapLabels(v.Labels)
|
||||
ret = append(ret, githubIssue{
|
||||
Name: n,
|
||||
Creator: getUserName(client, config, *v.User.Login),
|
||||
Avatar: av,
|
||||
Message: *v.Title,
|
||||
Date: v.CreatedAt.Format(issuesTimeFormat),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue