An SDK written in Go that wraps around the Forgejo API, providing additional convenience functions.
ae1583a7be
the `gitea.BranchProtection` struct is missing some fields which are present in the actual gitea API (and swagger). * BranchProtection.RuleName was added in gitea v1.19.0, via [PR #20825](https://github.com/go-gitea/gitea/pull/20825) * BranchProtection.UnprotectedFilePatterns was added in gitea v1.16.0, via [PR #16395](https://github.com/go-gitea/gitea/pull/16395) This PR adds those fields to the BranchProtection struct, and the related Create and Edit option structs, to match the structs [defined](https://github.com/go-gitea/gitea/blob/main/modules/structs/repo_branch.go#L27) on the gitea server side. Co-authored-by: Mark Glines <mark@glines.org> Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/626 Reviewed-by: John Olheiser <john+gitea@jolheiser.com> Reviewed-by: delvh <dev.lh@web.de> Co-authored-by: infinoid <infinoid@noreply.gitea.com> Co-committed-by: infinoid <infinoid@noreply.gitea.com> |
||
---|---|---|
.gitea/workflows | ||
.github | ||
docs | ||
gitea | ||
.changelog.yml | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.revive.toml | ||
CHANGELOG.md | ||
CONTRIBUTING.md | ||
DCO | ||
LICENSE | ||
Makefile | ||
README.md |
Gitea SDK for Go
This project acts as a client SDK implementation written in Go to interact with the Gitea API implementation. For further informations take a look at the current documentation.
Note: function arguments are escaped by the SDK.
Use it
import "code.gitea.io/sdk/gitea"
Version Requirements
- go >= 1.13
- gitea >= 1.11
Contributing
Fork -> Patch -> Push -> Pull Request
Authors
License
This project is under the MIT License. See the LICENSE file for the full license text.