Skip to content

Commit fd728c7

Browse files
committed
Delete LockBranch and AllowForkSyncing struct
1 parent 386bb55 commit fd728c7

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

github/repos.go

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -841,9 +841,9 @@ type Protection struct {
841841
AllowDeletions *AllowDeletions `json:"allow_deletions"`
842842
RequiredConversationResolution *RequiredConversationResolution `json:"required_conversation_resolution"`
843843
// LockBranch represents if the branch is marked as read-only. If this is true, users will not be able to push to the branch.
844-
LockBranch *bool `json:"lock_branch,omitempty"`
844+
LockBranch *bool `json:"lock_branch,omitempty"`
845845
// AllowForkSyncing represents whether users can pull changes from upstream when the branch is locked.
846-
AllowForkSyncing *bool `json:"allow_fork_syncing,omitempty"`
846+
AllowForkSyncing *bool `json:"allow_fork_syncing,omitempty"`
847847
}
848848

849849
// BranchProtectionRule represents the rule applied to a repositories branch.
@@ -898,21 +898,11 @@ type AdminEnforcedChanges struct {
898898
From *bool `json:"from,omitempty"`
899899
}
900900

901-
// LockBranch represents if the branch is marked as read-only. If this is true, users will not be able to push to the branch.
902-
type LockBranch struct {
903-
From *bool `json:"lock_branch"`
904-
}
905-
906901
// AllowDeletionsEnforcementLevelChanges represents the changes made to the AllowDeletionsEnforcementLevel policy.
907902
type AllowDeletionsEnforcementLevelChanges struct {
908903
From *string `json:"from,omitempty"`
909904
}
910905

911-
// AllowForkSyncing represents whether users can pull changes from upstream when the branch is locked.
912-
type AllowForkSyncing struct {
913-
From *bool `json:"allow_fork_syncing"`
914-
}
915-
916906
// AuthorizedActorNames represents who are authorized to edit the branch protection rules.
917907
type AuthorizedActorNames struct {
918908
From []string `json:"from,omitempty"`

0 commit comments

Comments
 (0)