diff --git a/github/apps.go b/github/apps.go index a546a70cdae..95e70445060 100644 --- a/github/apps.go +++ b/github/apps.go @@ -28,6 +28,7 @@ type App struct { HTMLURL *string `json:"html_url,omitempty"` CreatedAt *Timestamp `json:"created_at,omitempty"` UpdatedAt *Timestamp `json:"updated_at,omitempty"` + Slug *string `json:"slug,omitempty"` } // InstallationToken represents an installation token. diff --git a/github/repos.go b/github/repos.go index 37a09d5b8ab..3f5caeaf033 100644 --- a/github/repos.go +++ b/github/repos.go @@ -791,6 +791,8 @@ type BranchRestrictions struct { Users []*User `json:"users"` // The list of team slugs with push access. Teams []*Team `json:"teams"` + // The list of app slugs with push access. + Apps []*App `json:"apps"` } // BranchRestrictionsRequest represents the request to create/edit the @@ -802,6 +804,8 @@ type BranchRestrictionsRequest struct { Users []string `json:"users"` // The list of team slugs with push access. (Required; use []string{} instead of nil for empty list.) Teams []string `json:"teams"` + // The list of app slugs with push access. (Required; use []string{} instead of nil for empty list.) + Apps []string `json:"apps"` } // DismissalRestrictions specifies which users and teams can dismiss pull request reviews.