1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-21 06:09:42 +02:00

add extra accumulations for proposed github sections

This commit is contained in:
Elliott Stoneham 2016-08-17 15:12:09 +01:00
parent 6f0d503cb5
commit 20f77f359e
7 changed files with 692 additions and 641 deletions

View file

@ -13,6 +13,7 @@ package github
import (
"fmt"
"html/template"
"time"
"github.com/documize/community/core/log"
@ -29,6 +30,7 @@ type githubRender struct {
BranchCommits []githubBranchCommits `json:"branchCommits"`
CommitCount int `json:"commitCount"`
Issues []githubIssue `json:"issues"`
SharedLabels []template.HTML `json:"sharedLabels"`
OpenIssues int `json:"openIssues"`
ClosedIssues int `json:"closedIssues"`
Limit int `json:"limit"`
@ -79,6 +81,16 @@ type githubBranch struct {
Color string `json:"color,omitempty"`
}
type githubLabel struct {
ID string `json:"id"`
Owner string `json:"owner"`
Repo string `json:"repo"`
Name string `json:"name"`
Included bool `json:"included"`
URL string `json:"url"`
Color string `json:"color,omitempty"`
}
type githubConfig struct {
Token string `json:"-"` // NOTE very important that the secret Token is not leaked to the client side, so "-"
UserID string `json:"userId"`