Skip to content

Commit

Permalink
Add org permissions to InstallationPermissions (#2452)
Browse files Browse the repository at this point in the history
  • Loading branch information
thepwagner authored Sep 7, 2022
1 parent e8cac35 commit 52cc49e
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
2 changes: 2 additions & 0 deletions github/apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ type InstallationPermissions struct {
Metadata *string `json:"metadata,omitempty"`
Members *string `json:"members,omitempty"`
OrganizationAdministration *string `json:"organization_administration,omitempty"`
OrganizationCustomRoles *string `json:"organization_custom_roles,omitempty"`
OrganizationHooks *string `json:"organization_hooks,omitempty"`
OrganizationPackages *string `json:"organization_packages,omitempty"`
OrganizationPlan *string `json:"organization_plan,omitempty"`
OrganizationPreReceiveHooks *string `json:"organization_pre_receive_hooks,omitempty"`
OrganizationProjects *string `json:"organization_projects,omitempty"`
Expand Down
4 changes: 4 additions & 0 deletions github/apps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ func TestAppsService_ListInstallations(t *testing.T) {
"metadata": "read",
"members": "read",
"organization_administration": "write",
"organization_custom_roles": "write",
"organization_hooks": "write",
"organization_packages": "write",
"organization_plan": "read",
"organization_pre_receive_hooks": "write",
"organization_projects": "read",
Expand Down Expand Up @@ -159,7 +161,9 @@ func TestAppsService_ListInstallations(t *testing.T) {
Metadata: String("read"),
Members: String("read"),
OrganizationAdministration: String("write"),
OrganizationCustomRoles: String("write"),
OrganizationHooks: String("write"),
OrganizationPackages: String("write"),
OrganizationPlan: String("read"),
OrganizationPreReceiveHooks: String("write"),
OrganizationProjects: String("read"),
Expand Down
16 changes: 16 additions & 0 deletions github/github-accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions github/github-accessors_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 52cc49e

Please sign in to comment.