From bde56fb9bb02969b0421e7b6d85256312b4a6077 Mon Sep 17 00:00:00 2001 From: ysicing Date: Sun, 24 Dec 2023 20:16:02 +0000 Subject: [PATCH] feat(repo): update repo field (#642) Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/642 Reviewed-by: techknowlogick Co-authored-by: ysicing Co-committed-by: ysicing --- gitea/repo.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gitea/repo.go b/gitea/repo.go index 8f0e346..7d2d242 100644 --- a/gitea/repo.go +++ b/gitea/repo.go @@ -85,6 +85,9 @@ type Repository struct { ExternalWiki *ExternalWiki `json:"external_wiki,omitempty"` HasPullRequests bool `json:"has_pull_requests"` HasProjects bool `json:"has_projects"` + HasReleases bool `json:"has_releases,omitempty"` + HasPackages bool `json:"has_packages,omitempty"` + HasActions bool `json:"has_actions,omitempty"` IgnoreWhitespaceConflicts bool `json:"ignore_whitespace_conflicts"` AllowMerge bool `json:"allow_merge_commits"` AllowRebase bool `json:"allow_rebase"` @@ -423,6 +426,12 @@ type EditRepoOption struct { HasPullRequests *bool `json:"has_pull_requests,omitempty"` // either `true` to enable project unit, or `false` to disable them. HasProjects *bool `json:"has_projects,omitempty"` + // either `true` to enable release, or `false` to disable them. + HasReleases *bool `json:"has_releases,omitempty"` + // either `true` to enable packages, or `false` to disable them. + HasPackages *bool `json:"has_packages,omitempty"` + // either `true` to enable actions, or `false` to disable them. + HasActions *bool `json:"has_actions,omitempty"` // either `true` to ignore whitespace for conflicts, or `false` to not ignore whitespace. `has_pull_requests` must be `true`. IgnoreWhitespaceConflicts *bool `json:"ignore_whitespace_conflicts,omitempty"` // either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. `has_pull_requests` must be `true`.