Skip to content

Commit 94c4092

Browse files
committed
Add InstallationsCount to appps.App
It's not in the official google documentation but exposed to the API. Signed-off-by: Chmouel Boudjnah <[email protected]>
1 parent 693ddff commit 94c4092

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
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-stringify_test.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)