@@ -69,7 +69,7 @@ type Repository struct {
6969 AllowAutoMerge * bool `json:"allow_auto_merge,omitempty"`
7070 AllowForking * bool `json:"allow_forking,omitempty"`
7171 DeleteBranchOnMerge * bool `json:"delete_branch_on_merge,omitempty"`
72- UseSquashPrTitleAsDefault * bool `json:"use_squash_pr_title_as_default"`
72+ UseSquashPRTitleAsDefault * bool `json:"use_squash_pr_title_as_default,omitempty "`
7373 Topics []string `json:"topics,omitempty"`
7474 Archived * bool `json:"archived,omitempty"`
7575 Disabled * bool `json:"disabled,omitempty"`
@@ -373,7 +373,7 @@ type createRepoRequest struct {
373373 AllowAutoMerge * bool `json:"allow_auto_merge,omitempty"`
374374 AllowForking * bool `json:"allow_forking,omitempty"`
375375 DeleteBranchOnMerge * bool `json:"delete_branch_on_merge,omitempty"`
376- UseSquashPrTitleAsDefault * bool `json:"use_squash_pr_title_as_default"`
376+ UseSquashPRTitleAsDefault * bool `json:"use_squash_pr_title_as_default,omitempty "`
377377}
378378
379379// Create a new repository. If an organization is specified, the new
@@ -419,7 +419,7 @@ func (s *RepositoriesService) Create(ctx context.Context, org string, repo *Repo
419419 AllowAutoMerge : repo .AllowAutoMerge ,
420420 AllowForking : repo .AllowForking ,
421421 DeleteBranchOnMerge : repo .DeleteBranchOnMerge ,
422- UseSquashPrTitleAsDefault : repo .UseSquashPrTitleAsDefault ,
422+ UseSquashPRTitleAsDefault : repo .UseSquashPRTitleAsDefault ,
423423 }
424424
425425 req , err := s .client .NewRequest ("POST" , u , repoReq )
0 commit comments