@@ -834,11 +834,6 @@ type Branch struct {
834
834
Protected * bool `json:"protected,omitempty"`
835
835
}
836
836
837
- type RequiredSignatures struct {
838
- Url string `json:"url"`
839
- Enabled bool `json:"enabled"`
840
- }
841
-
842
837
// Protection represents a repository branch's protection.
843
838
type Protection struct {
844
839
RequiredStatusChecks * RequiredStatusChecks `json:"required_status_checks"`
@@ -852,8 +847,8 @@ type Protection struct {
852
847
BlockCreations * BlockCreations `json:"block_creations,omitempty"`
853
848
LockBranch * LockBranch `json:"lock_branch,omitempty"`
854
849
AllowForkSyncing * AllowForkSyncing `json:"allow_fork_syncing,omitempty"`
855
- RequiredSignatures * RequiredSignatures `json:"required_signatures,omitempty"`
856
- Url * string `json:"url,omitempty"`
850
+ RequiredSignatures * SignaturesProtectedBranch `json:"required_signatures,omitempty"`
851
+ URL * string `json:"url,omitempty"`
857
852
}
858
853
859
854
// BlockCreations represents whether users can push changes that create branches. If this is true, this
@@ -1022,8 +1017,8 @@ type ProtectionRequest struct {
1022
1017
1023
1018
// RequiredStatusChecks represents the protection status of a individual branch.
1024
1019
type RequiredStatusChecks struct {
1025
- Url * string `json:"url,omitempty"`
1026
- ContextsUrl * string `json:"contexts_url,omitempty"`
1020
+ URL * string `json:"url,omitempty"`
1021
+ ContextsURL * string `json:"contexts_url,omitempty"`
1027
1022
// Require branches to be up to date before merging. (Required.)
1028
1023
Strict bool `json:"strict"`
1029
1024
// The list of status checks to require in order to merge into this
0 commit comments