This repository has been archived on 2020-07-09. You can view files and clone it, but cannot push or open issues or pull requests.
gitea-sdk/README2.md
jolheiser 9b59f7908f
Add usage
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2020-01-25 21:00:51 -06:00

827 B

Gitea SDK

A few things don't come out exactly correctly directly from code-gen

  • api_user.go has a duplicate CreateCurrentUserRepoOpts near the top, simply remove it.
  • api_repository.go has a broken func signature. In RepoCreateReleaseAttachment, replace attachment with localVarFile and remove where localVarFile is initialized in the body.
    • This should be fixed in 2.4.12
  • api_miscellaneous is missing an import statement for github.com/antihax/optional

Usage

The master branch will try to keep up-to-date with Gitea master, with no release tags.

go get gitea.com/jolheiser/gitea-sdk@master

Otherwise, you can get the SDK by selecting the version of Gitea you are using

go get gitea.com/jolheiser/gitea-sdk@1.10.3