Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InstallationPermissions: organization perms #2452

Merged
merged 1 commit into from Sep 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions github/apps.go
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
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.