Skip to content

Commit 0dbc7e0

Browse files
committed
Added GoDoc for Deprecated Repository Fields
1 parent 90361f7 commit 0dbc7e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

github/repos.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ type Repository struct {
4444
ForksCount *int `json:"forks_count,omitempty"`
4545
NetworkCount *int `json:"network_count,omitempty"`
4646
OpenIssuesCount *int `json:"open_issues_count,omitempty"`
47-
OpenIssues *int `json:"open_issues,omitempty"`
47+
OpenIssues *int `json:"open_issues,omitempty"` // Deprecated: Replaced by OpenIssuesCount. For backward compatibility OpenIssues is still populated.
4848
StargazersCount *int `json:"stargazers_count,omitempty"`
4949
SubscribersCount *int `json:"subscribers_count,omitempty"`
50-
WatchersCount *int `json:"watchers_count,omitempty"`
51-
Watchers *int `json:"watchers,omitempty"`
50+
WatchersCount *int `json:"watchers_count,omitempty"` // Deprecated: Replaced by StargazersCount. For backward compatibility WatchersCount is still populated.
51+
Watchers *int `json:"watchers,omitempty"` // Deprecated: Replaced by StargazersCount. For backward compatibility Watchers is still populated.
5252
Size *int `json:"size,omitempty"`
5353
AutoInit *bool `json:"auto_init,omitempty"`
5454
Parent *Repository `json:"parent,omitempty"`

0 commit comments

Comments
 (0)