From 2066f91862c720697e99db8c5499dd0b60ef8972 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Wed, 13 Aug 2025 00:13:17 -0400 Subject: [PATCH] add `GroupID` field to `CreateRepoOptions` --- services/repository/create.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/repository/create.go b/services/repository/create.go index a8b57b6707..be98e85aaf 100644 --- a/services/repository/create.go +++ b/services/repository/create.go @@ -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