Fix missing repository id when migrating release attachments

This commit is contained in:
Lunny Xiao
2026-01-15 22:04:45 -08:00
parent 67e75f30a8
commit 275aec0c0e
+1
View File
@@ -318,6 +318,7 @@ func (g *GiteaLocalUploader) CreateReleases(ctx context.Context, releases ...*ba
}
attach := repo_model.Attachment{
UUID: uuid.New().String(),
RepoID: g.repo.ID,
Name: asset.Name,
DownloadCount: int64(*asset.DownloadCount),
Size: int64(*asset.Size),