orgRepos, _, err := gclient.ListOrgRepos("foo", gitea.ListOrgReposOptions{})
repoOption := orgRepos[0]
repository, _, err = gclient.EditRepo("foo", repoOption.Name, gitea.EditRepoOption{
Name: &repoOption.Name,
Description: &repoOption.Description,
Website: &repoOption.Website,
Private: &repoOption.Private,
HasIssues: &repoOption.HasIssues,
HasWiki: &repoOption.HasWiki,
DefaultBranch: &repoOption.DefaultBranch,
HasPullRequests: &repoOption.HasPullRequests,
IgnoreWhitespaceConflicts: &repoOption.IgnoreWhitespaceConflicts,
AllowMerge: &repoOption.AllowMerge,
AllowRebase: &repoOption.AllowRebase,
AllowRebaseMerge: &repoOption.AllowRebaseMerge,
AllowSquash: &repoOption.AllowSquash,
// Archived: &repoOption.Archived,
})
[x]):Description
Editing a forked repo with gitea sdk, sample code