Skip to content

Commit 3ad4665

Browse files
feat: Add deploy_keys_enabled_for_repositories and secret scanning custom link fields to Organization struct (#4188)
1 parent 0a16e22 commit 3ad4665

4 files changed

Lines changed: 68 additions & 1 deletion

File tree

github/github-accessors.go

Lines changed: 24 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: 33 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: 4 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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ type Organization struct {
6868
// MembersCanForkPrivateRepos toggles whether organization members can fork private organization repositories.
6969
MembersCanForkPrivateRepos *bool `json:"members_can_fork_private_repositories,omitempty"`
7070

71+
// DeployKeysEnabledForRepositories toggles whether deploy keys may be added and used for repositories in the organization.
72+
DeployKeysEnabledForRepositories *bool `json:"deploy_keys_enabled_for_repositories,omitempty"`
73+
7174
// MembersAllowedRepositoryCreationType denotes if organization members can create repositories
7275
// and the type of repositories they can create. Possible values are: "all", "private", or "none".
7376
//
@@ -98,6 +101,10 @@ type Organization struct {
98101
SecretScanningPushProtectionEnabledForNewRepos *bool `json:"secret_scanning_push_protection_enabled_for_new_repositories,omitempty"`
99102
// SecretScanningValidityChecksEnabled toggles whether secret scanning validity check is enabled.
100103
SecretScanningValidityChecksEnabled *bool `json:"secret_scanning_validity_checks_enabled,omitempty"`
104+
// SecretScanningPushProtectionCustomLinkEnabled toggles whether a custom link is shown to contributors blocked by secret scanning push protection.
105+
SecretScanningPushProtectionCustomLinkEnabled *bool `json:"secret_scanning_push_protection_custom_link_enabled,omitempty"`
106+
// SecretScanningPushProtectionCustomLink is the URL displayed to contributors blocked by secret scanning push protection.
107+
SecretScanningPushProtectionCustomLink *string `json:"secret_scanning_push_protection_custom_link,omitempty"`
101108
// MembersCanDeleteRepositories toggles whether members with admin permissions can delete a repository.
102109
MembersCanDeleteRepositories *bool `json:"members_can_delete_repositories,omitempty"`
103110
// MembersCanChangeRepoVisibility toggles whether members with admin permissions can change the visibility for a repository.

0 commit comments

Comments
 (0)