0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-04-04 10:05:18 +02:00

add GroupID field to CreateRepoOptions

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2025-08-13 00:13:17 -04:00
parent 3711d573e6
commit 2066f91862
No known key found for this signature in database
GPG Key ID: 924A5F6AF051E87C

View File

@ -52,6 +52,7 @@ type CreateRepoOptions struct {
TrustModel repo_model.TrustModelType
MirrorInterval string
ObjectFormatName string
GroupID int64
}
func prepareRepoCommit(ctx context.Context, repo *repo_model.Repository, tmpDir string, opts CreateRepoOptions) error {
@ -254,6 +255,7 @@ func CreateRepositoryDirectly(ctx context.Context, doer, owner *user_model.User,
DefaultBranch: opts.DefaultBranch,
DefaultWikiBranch: setting.Repository.DefaultBranch,
ObjectFormatName: opts.ObjectFormatName,
GroupID: opts.GroupID,
}
// 1 - create the repository database operations first