0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-12 15:33:39 +02:00

add GroupID field to CreateRepoOptions

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

View File

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