0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-11 22:15:38 +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
MirrorInterval string
ObjectFormatName string
GroupID int64
}
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,
DefaultWikiBranch: setting.Repository.DefaultBranch,
ObjectFormatName: opts.ObjectFormatName,
GroupID: opts.GroupID,
}
// 1 - create the repository database operations first