From 5d0143e4e70b021e9847839b00412d1dd1444c69 Mon Sep 17 00:00:00 2001 From: diogo464 Date: Mon, 29 Jan 2024 05:38:16 +0000 Subject: [PATCH] fix: updated repository field in Package struct (#647) The definition for `Package` in the most recent api switch the repository field from a string to a `Repository`. Without this fix api calls like ListPackages will fail to deserialize the response. Co-authored-by: diogo464 Co-authored-by: Lunny Xiao Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/647 Reviewed-by: Lunny Xiao Reviewed-by: John Olheiser Co-authored-by: diogo464 Co-committed-by: diogo464 --- gitea/package.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitea/package.go b/gitea/package.go index df3bd3c..41ffdee 100644 --- a/gitea/package.go +++ b/gitea/package.go @@ -16,7 +16,7 @@ type Package struct { // the package's owner Owner User `json:"owner"` // the repo this package belongs to (if any) - Repository *string `json:"repository"` + Repository *Repository `json:"repository"` // the package's creator Creator User `json:"creator"` // the type of package: