Skip to content

Commit 642c343

Browse files
authored
Add org struct fields (#2471)
Fixes: #2470
1 parent 30d1431 commit 642c343

File tree

4 files changed

+156
-9
lines changed

4 files changed

+156
-9
lines changed

github/github-accessors.go

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

github/orgs.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,20 @@ type Organization struct {
8282
MembersCanCreatePublicPages *bool `json:"members_can_create_public_pages,omitempty"`
8383
// MembersCanCreatePrivatePages toggles whether organization members can create private GitHub Pages sites.
8484
MembersCanCreatePrivatePages *bool `json:"members_can_create_private_pages,omitempty"`
85+
// WebCommitSignoffRequire toggles
86+
WebCommitSignoffRequired *bool `json:"web_commit_signoff_required,omitempty"`
87+
// AdvancedSecurityAuditLogEnabled toggles whether the advanced security audit log is enabled.
88+
AdvancedSecurityEnabledForNewRepos *bool `json:"advanced_security_enabled_for_new_repositories,omitempty"`
89+
// DependabotAlertsEnabled toggles whether dependabot alerts are enabled.
90+
DependabotAlertsEnabledForNewRepos *bool `json:"dependabot_alerts_enabled_for_new_repositories,omitempty"`
91+
// DependabotSecurityUpdatesEnabled toggles whether dependabot security updates are enabled.
92+
DependabotSecurityUpdatesEnabledForNewRepos *bool `json:"dependabot_security_updates_enabled_for_new_repositories,omitempty"`
93+
// DependabotGraphEnabledForNewRepos toggles whether dependabot graph is enabled on new repositories.
94+
DependencyGraphEnabledForNewRepos *bool `json:"dependency_graph_enabled_for_new_repositories,omitempty"`
95+
// SecretScanningEnabled toggles whether secret scanning is enabled on new repositories.
96+
SecretScanningEnabledForNewRepos *bool `json:"secret_scanning_enabled_for_new_repositories,omitempty"`
97+
// SecretScanningPushProtectionEnabledForNewRepos toggles whether secret scanning push protection is enabled on new repositories.
98+
SecretScanningPushProtectionEnabledForNewRepos *bool `json:"secret_scanning_push_protection_enabled_for_new_repositories,omitempty"`
8599

86100
// API URLs
87101
URL *string `json:"url,omitempty"`

0 commit comments

Comments
 (0)