Skip to content

Commit 74b2ca0

Browse files
authored
Add additional settings fields to org API (#3642)
1 parent 8fedb85 commit 74b2ca0

File tree

4 files changed

+199
-1
lines changed

4 files changed

+199
-1
lines changed

github/github-accessors.go

Lines changed: 72 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: 99 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-stringify_test.go

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

github/orgs.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,24 @@ type Organization struct {
9797
SecretScanningPushProtectionEnabledForNewRepos *bool `json:"secret_scanning_push_protection_enabled_for_new_repositories,omitempty"`
9898
// SecretScanningValidityChecksEnabled toggles whether secret scanning validity check is enabled.
9999
SecretScanningValidityChecksEnabled *bool `json:"secret_scanning_validity_checks_enabled,omitempty"`
100+
// MembersCanDeleteRepositories toggles whether members with admin permissions can delete a repository.
101+
MembersCanDeleteRepositories *bool `json:"members_can_delete_repositories,omitempty"`
102+
// MembersCanChangeRepoVisibility toggles whether members with admin permissions can change the visibility for a repository.
103+
MembersCanChangeRepoVisibility *bool `json:"members_can_change_repo_visiblilty,omitempty"`
104+
// MembersCanInviteOutsideCollaborators toggles whether members with admin permissions can invite outside collaborators.
105+
MembersCanInviteOutsideCollaborators *bool `json:"members_can_invite_outside_collaborators,omitempty"`
106+
// MembersCanDeleteIssues toggles whether members with admin permissions can delete issues.
107+
MembersCanDeleteIssues *bool `json:"members_can_delete_issues,omitempty"`
108+
// DisplayCommenterFullNameSettingEnabled toggles whether members can see the comment author's profile name in private repositories.
109+
DisplayCommenterFullNameSettingEnabled *bool `json:"display_commenter_full_name_setting_enabled,omitempty"`
110+
// ReadersCanCreateDiscussions toggles whether users with read access can create and comment on discussions.
111+
ReadersCanCreateDiscussions *bool `json:"readers_can_create_discussions,omitempty"`
112+
// MembersCanCreateTeams toggles whether members of an organization can create new teams.
113+
MembersCanCreateTeams *bool `json:"members_can_create_teams,omitempty"`
114+
// MembersCanViewDependencyInsights toggles whether members may view dependency insights.
115+
MembersCanViewDependencyInsights *bool `json:"members_can_view_dependency_insights,omitempty"`
116+
// DefaultRepositoryBranch is the default branch for new repositories in the organization.
117+
DefaultRepositoryBranch *string `json:"default_repository_branch,omitempty"`
100118

101119
// API URLs
102120
URL *string `json:"url,omitempty"`

0 commit comments

Comments
 (0)