@@ -501,21 +501,22 @@ type createRepoRequest struct {
501501 // Creating an organization repository. Required for non-owners.
502502 TeamID * int64 `json:"team_id,omitempty"`
503503
504- AutoInit * bool `json:"auto_init,omitempty"`
505- GitignoreTemplate * string `json:"gitignore_template,omitempty"`
506- LicenseTemplate * string `json:"license_template,omitempty"`
507- AllowSquashMerge * bool `json:"allow_squash_merge,omitempty"`
508- AllowMergeCommit * bool `json:"allow_merge_commit,omitempty"`
509- AllowRebaseMerge * bool `json:"allow_rebase_merge,omitempty"`
510- AllowUpdateBranch * bool `json:"allow_update_branch,omitempty"`
511- AllowAutoMerge * bool `json:"allow_auto_merge,omitempty"`
512- AllowForking * bool `json:"allow_forking,omitempty"`
513- DeleteBranchOnMerge * bool `json:"delete_branch_on_merge,omitempty"`
514- UseSquashPRTitleAsDefault * bool `json:"use_squash_pr_title_as_default,omitempty"`
515- SquashMergeCommitTitle * string `json:"squash_merge_commit_title,omitempty"`
516- SquashMergeCommitMessage * string `json:"squash_merge_commit_message,omitempty"`
517- MergeCommitTitle * string `json:"merge_commit_title,omitempty"`
518- MergeCommitMessage * string `json:"merge_commit_message,omitempty"`
504+ AutoInit * bool `json:"auto_init,omitempty"`
505+ GitignoreTemplate * string `json:"gitignore_template,omitempty"`
506+ LicenseTemplate * string `json:"license_template,omitempty"`
507+ AllowSquashMerge * bool `json:"allow_squash_merge,omitempty"`
508+ AllowMergeCommit * bool `json:"allow_merge_commit,omitempty"`
509+ AllowRebaseMerge * bool `json:"allow_rebase_merge,omitempty"`
510+ AllowUpdateBranch * bool `json:"allow_update_branch,omitempty"`
511+ AllowAutoMerge * bool `json:"allow_auto_merge,omitempty"`
512+ AllowForking * bool `json:"allow_forking,omitempty"`
513+ DeleteBranchOnMerge * bool `json:"delete_branch_on_merge,omitempty"`
514+ UseSquashPRTitleAsDefault * bool `json:"use_squash_pr_title_as_default,omitempty"`
515+ SquashMergeCommitTitle * string `json:"squash_merge_commit_title,omitempty"`
516+ SquashMergeCommitMessage * string `json:"squash_merge_commit_message,omitempty"`
517+ MergeCommitTitle * string `json:"merge_commit_title,omitempty"`
518+ MergeCommitMessage * string `json:"merge_commit_message,omitempty"`
519+ CustomProperties map [string ]any `json:"custom_properties,omitempty"`
519520}
520521
521522// Create a new repository. If an organization is specified, the new
@@ -575,6 +576,7 @@ func (s *RepositoriesService) Create(ctx context.Context, org string, repo *Repo
575576 SquashMergeCommitMessage : repo .SquashMergeCommitMessage ,
576577 MergeCommitTitle : repo .MergeCommitTitle ,
577578 MergeCommitMessage : repo .MergeCommitMessage ,
579+ CustomProperties : repo .CustomProperties ,
578580 }
579581
580582 req , err := s .client .NewRequest ("POST" , u , repoReq )
0 commit comments