AGENTS.md and add CLAUDE.md (#830)
Sync the conventions from https://github.com/go-gitea/gitea/blob/main/AGENTS.md that apply here, adapted to this repository's Makefile targets and test layout. Points specific to the server (locale files, TS/CSS, swagger generation, e2e tests) are omitted. `CLAUDE.md` imports `AGENTS.md` so Claude Code picks up the same file, matching the main repository. Assisted-by: Claude Code:claude-opus-5 Reviewed-on: #830 Reviewed-by: techknowlogick <9+techknowlogick@noreply.gitea.com> Co-authored-by: silverwind <2021+silverwind@noreply.gitea.com>
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.
The SDK module path is now gitea.dev/sdk. If you are migrating from the previous code.gitea.io/sdk/gitea path, see docs/migrate-code-gitea-io-to-gitea-dev.md. If you are migrating from direct Client business methods to service-based entry points, see docs/migrate-client-to-services.md.
Note: function arguments are escaped by the SDK.
Use it
import "gitea.dev/sdk"
Version Requirements
- go >= 1.26
- gitea >= 1.11
Contributing
Fork -> Patch -> Push -> Pull Request
Run common development commands from the repository root, for example make build,
make test-unit, and make lint.
The compatibility wrappers in client_services_wrappers.go are generated and
deprecated in favor of client.<Service>.<Method>. For the full generated
migration matrix from Client methods to services, see
docs/migrate-client-to-services.md. Run
go generate ./... or make generate after changing exported service methods.
Authors
License
This project is under the MIT License. See the LICENSE file for the full license text.