Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pkg/github/issues.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ type IssueFragment struct {
DatabaseID int64

Author struct {
Login githubv4.String
Login githubv4.String
Association githubv4.String
}
CreatedAt githubv4.DateTime
UpdatedAt githubv4.DateTime
Expand Down
15 changes: 8 additions & 7 deletions pkg/github/minimal_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,16 +387,17 @@ func convertToMinimalIssue(issue *github.Issue) MinimalIssue {

func fragmentToMinimalIssue(fragment IssueFragment) MinimalIssue {
m := MinimalIssue{
Number: int(fragment.Number),
Title: sanitize.Sanitize(string(fragment.Title)),
Body: sanitize.Sanitize(string(fragment.Body)),
State: string(fragment.State),
Comments: int(fragment.Comments.TotalCount),
CreatedAt: fragment.CreatedAt.Format(time.RFC3339),
UpdatedAt: fragment.UpdatedAt.Format(time.RFC3339),
Number: int(fragment.Number),
Title: sanitize.Sanitize(string(fragment.Title)),
Body: sanitize.Sanitize(string(fragment.Body)),
State: string(fragment.State),
Comments: int(fragment.Comments.TotalCount),
CreatedAt: fragment.CreatedAt.Format(time.RFC3339),
UpdatedAt: fragment.UpdatedAt.Format(time.RFC3339),
User: &MinimalUser{
Login: string(fragment.Author.Login),
},
AuthorAssociation: string(fragment.Author.Association),
}

for _, label := range fragment.Labels.Nodes {
Expand Down