Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 538bef5

Browse files
bkcsoftunknwon
authored andcommitted
GitHub-API compliance (#52)
* Fix #3653 * GitHub Compliance
1 parent d8e9a39 commit 538bef5

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

‎issue.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ type Issue struct {
4141
}
4242

4343
type ListIssueOption struct {
44-
Page int
44+
Page int
45+
State string
4546
}
4647

4748
func (c *Client) ListIssues(opt ListIssueOption) ([]*Issue, error) {

‎issue_label.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ type Label struct {
1414
ID int64 `json:"id"`
1515
Name string `json:"name"`
1616
Color string `json:"color"`
17+
URL string `json:"url"`
1718
}
1819

1920
func (c *Client) ListRepoLabels(owner, repo string) ([]*Label, error) {

‎user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
// User represents a API user.
1212
type User struct {
1313
ID int64 `json:"id"`
14-
UserName string `json:"username"`
14+
UserName string `json:"login"`
1515
FullName string `json:"full_name"`
1616
Email string `json:"email"`
1717
AvatarUrl string `json:"avatar_url"`

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /