Skip to content

Commit 848d85f

Browse files
authored
Add InstallationsCount to App (#2765)
1 parent 693ddff commit 848d85f

File tree

3 files changed

+31
-12
lines changed

3 files changed

+31
-12
lines changed

github/apps.go

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,19 @@ type AppsService service
1818

1919
// App represents a GitHub App.
2020
type App struct {
21-
ID *int64 `json:"id,omitempty"`
22-
Slug *string `json:"slug,omitempty"`
23-
NodeID *string `json:"node_id,omitempty"`
24-
Owner *User `json:"owner,omitempty"`
25-
Name *string `json:"name,omitempty"`
26-
Description *string `json:"description,omitempty"`
27-
ExternalURL *string `json:"external_url,omitempty"`
28-
HTMLURL *string `json:"html_url,omitempty"`
29-
CreatedAt *Timestamp `json:"created_at,omitempty"`
30-
UpdatedAt *Timestamp `json:"updated_at,omitempty"`
31-
Permissions *InstallationPermissions `json:"permissions,omitempty"`
32-
Events []string `json:"events,omitempty"`
21+
ID *int64 `json:"id,omitempty"`
22+
Slug *string `json:"slug,omitempty"`
23+
NodeID *string `json:"node_id,omitempty"`
24+
Owner *User `json:"owner,omitempty"`
25+
Name *string `json:"name,omitempty"`
26+
Description *string `json:"description,omitempty"`
27+
ExternalURL *string `json:"external_url,omitempty"`
28+
HTMLURL *string `json:"html_url,omitempty"`
29+
CreatedAt *Timestamp `json:"created_at,omitempty"`
30+
UpdatedAt *Timestamp `json:"updated_at,omitempty"`
31+
Permissions *InstallationPermissions `json:"permissions,omitempty"`
32+
Events []string `json:"events,omitempty"`
33+
InstallationsCount *int `json:"installations_count,omitempty"`
3334
}
3435

3536
// InstallationToken represents an installation token.

github/github-accessors.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-accessors_test.go

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)