Skip to content
Merged
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
12 changes: 6 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (
)

type Issue struct {
Number *int
Number int
Labels []github.Label
User *string
User string
Repo string
}

Expand Down Expand Up @@ -91,9 +91,9 @@ func snapshot() error {
}

labels := prometheus.Labels{
"number": strconv.Itoa(*issueInfo.Number),
"number": strconv.Itoa(issueInfo.Number),
"label": strings.Join(labelsTag, ","),
"author": *issueInfo.User,
"author": issueInfo.User,
"repo": issueInfo.Repo,
}
IssueCount.With(labels).Set(1)
Expand Down Expand Up @@ -193,9 +193,9 @@ func getIssueInfos(issues []*github.Issue) []Issue {
repos := strings.Split(*issue.URL, "/")

issueInfos[i] = Issue{
Number: issue.Number,
Number: issue.GetNumber(),
Labels: issue.Labels,
User: issue.User.Login,
User: issue.User.GetLogin(),
Repo: repos[4] + "/" + repos[5],
}
}
Expand Down