From f1d37ee62367ae4f043c8202de269a07822e58cf Mon Sep 17 00:00:00 2001 From: Patrick Rice Date: Mon, 2 Sep 2024 16:08:19 +0000 Subject: [PATCH] Fix an issue with omitempty on default_branch_protection_defaults --- groups.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groups.go b/groups.go index 52fd13f6c..34f0cab66 100644 --- a/groups.go +++ b/groups.go @@ -393,7 +393,7 @@ type CreateGroupOptions struct { type DefaultBranchProtectionDefaultsOptions struct { AllowedToPush *[]*GroupAccessLevel `url:"allowed_to_push,omitempty" json:"allowed_to_push,omitempty"` AllowForcePush *bool `url:"allow_force_push,omitempty" json:"allow_force_push,omitempty"` - AllowedToMerge *[]*GroupAccessLevel `url:"allowed_to_merge.omitempty" json:"allowed_to_merge.omitempty"` + AllowedToMerge *[]*GroupAccessLevel `url:"allowed_to_merge,omitempty" json:"allowed_to_merge,omitempty"` DeveloperCanInitialPush *bool `url:"developer_can_initial_push,omitempty" json:"developer_can_initial_push,omitempty"` }