No description
  • Go 98.9%
  • Makefile 1.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Renovate Bot a617bf172b fix(deps): update module golang.org/x/crypto to v0.55.0 [security] (#844)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
2026-08-29 11:11:08 +00:00
.gitea chore(deps): pin dependencies (#827) 2026-07-27 22:02:44 +00:00
dagger chore(deps): pin dependencies (#827) 2026-07-27 22:02:44 +00:00
docs Refine SDK type naming and add deprecated compatibility aliases (#802) 2026-05-26 04:13:47 +00:00
tests test: wait for repository language analysis (#842) 2026-08-22 20:15:14 +00:00
tools/gen-client-service-wrappers feat: add project APIs (#831) 2026-08-10 22:23:16 +00:00
.changelog.yml Changelog for v0.15.0 (#538) 2021-08-14 00:46:54 +08:00
.editorconfig switch gitter to discord for drone. (#62) 2017-06-16 10:46:36 +08:00
.gitattributes prevent merge conflicts | gitattributes eol=lf (#200) 2019-12-30 20:16:29 +00:00
.gitignore refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
.revive.toml use golangci-lint and revive for linting (match main repo) (#220) 2020-01-26 19:08:47 +00:00
actions_artifacts.go Refine SDK type naming and add deprecated compatibility aliases (#802) 2026-05-26 04:13:47 +00:00
actions_run.go Add workflow-scoped run listing and workflow run attempt APIs (#838) 2026-08-22 04:54:25 +00:00
actions_run_jobs.go Add workflow-scoped run listing and workflow run attempt APIs (#838) 2026-08-22 04:54:25 +00:00
actions_run_test.go Add workflow-scoped run listing and workflow run attempt APIs (#838) 2026-08-22 04:54:25 +00:00
actions_runners.go Refine SDK type naming and add deprecated compatibility aliases (#802) 2026-05-26 04:13:47 +00:00
actions_secrets.go Refine SDK type naming and add deprecated compatibility aliases (#802) 2026-05-26 04:13:47 +00:00
actions_variables.go Refine SDK type naming and add deprecated compatibility aliases (#802) 2026-05-26 04:13:47 +00:00
actions_workflows.go Refine SDK type naming and add deprecated compatibility aliases (#802) 2026-05-26 04:13:47 +00:00
activity.go Move functions to have less files on the root folder (#800) 2026-05-25 16:22:28 +00:00
activitypub.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
admin.go Move functions to have less files on the root folder (#800) 2026-05-25 16:22:28 +00:00
admin_badges.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
admin_cron.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
admin_email.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
admin_user.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
AGENTS.md chore: expand AGENTS.md and add CLAUDE.md (#830) 2026-08-20 14:18:27 +00:00
CHANGELOG.md Add Changelog for v0.15.1 & url fixes (#564) 2022-01-12 08:44:20 +08:00
CLAUDE.md chore: expand AGENTS.md and add CLAUDE.md (#830) 2026-08-20 14:18:27 +00:00
client.go feat: add project APIs (#831) 2026-08-10 22:23:16 +00:00
client_services_wrappers.go Refine SDK type naming and add deprecated compatibility aliases (#802) 2026-05-26 04:13:47 +00:00
client_test.go fix: HTTPSign deadlock during initial server version detection (#811) 2026-06-28 23:49:34 +00:00
CONTRIBUTING.md Move code from gitea sub folder to root folder (#798) 2026-05-24 18:35:44 +00:00
DCO Added contribution and maintainer files 2016-11-07 11:26:36 -02:00
doc.go Move code from gitea sub folder to root folder (#798) 2026-05-24 18:35:44 +00:00
git.go Refine SDK type naming and add deprecated compatibility aliases (#802) 2026-05-26 04:13:47 +00:00
git_hook.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
go.mod fix(deps): update module golang.org/x/crypto to v0.55.0 [security] (#844) 2026-08-29 11:11:08 +00:00
go.sum fix(deps): update module golang.org/x/crypto to v0.55.0 [security] (#844) 2026-08-29 11:11:08 +00:00
helper.go Move functions to have less files on the root folder (#800) 2026-05-25 16:22:28 +00:00
hook.go Move functions to have less files on the root folder (#800) 2026-05-25 16:22:28 +00:00
hook_test.go Move functions to have less files on the root folder (#800) 2026-05-25 16:22:28 +00:00
httpsign.go chore(dep)!: remove legacy httpsign dep (#805) 2026-06-02 23:59:45 +00:00
httpsign_agent.go Move functions to have less files on the root folder (#800) 2026-05-25 16:22:28 +00:00
httpsign_agent_windows.go Move functions to have less files on the root folder (#800) 2026-05-25 16:22:28 +00:00
issue.go Move functions to have less files on the root folder (#800) 2026-05-25 16:22:28 +00:00
issue_assignees.go feat(api): Add assignees APIs (#809) 2026-06-20 19:51:46 +00:00
issue_attachment.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
issue_comment.go Fix marshalling error when deserializing labels in the timeline (#807) 2026-06-20 19:56:16 +00:00
issue_label.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
issue_pin.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
issue_reaction.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
issue_stopwatch.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
issue_subscription.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
issue_template.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
issue_tracked_time.go Move functions to have less files on the root folder (#800) 2026-05-25 16:22:28 +00:00
LICENSE Updated licenses info 2016-11-07 11:26:36 -02:00
Makefile chore: update golangci-lint to v2.13.1 for Go 1.27 support (#841) 2026-08-22 04:26:49 +00:00
miscellaneous.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
notifications.go Refine SDK type naming and add deprecated compatibility aliases (#802) 2026-05-26 04:13:47 +00:00
oauth2.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
org.go Add API to delete all repositories of an organization (#836) 2026-08-19 23:01:31 +00:00
org_label.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
org_member.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
org_team.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
org_test.go Add API to delete all repositories of an organization (#836) 2026-08-19 23:01:31 +00:00
package.go Add API to delete a package with all of its versions (#837) 2026-08-19 20:15:07 +00:00
package_test.go Add API to delete a package with all of its versions (#837) 2026-08-19 20:15:07 +00:00
project.go feat: add project APIs (#831) 2026-08-10 22:23:16 +00:00
project_column.go feat: add project APIs (#831) 2026-08-10 22:23:16 +00:00
project_test.go feat: add project APIs (#831) 2026-08-10 22:23:16 +00:00
pull.go Move functions to have less files on the root folder (#800) 2026-05-25 16:22:28 +00:00
pull_review.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
README.md refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
release.go Refine SDK type naming and add deprecated compatibility aliases (#802) 2026-05-26 04:13:47 +00:00
renovate.json5 chore: Configure Renovate (#685) 2025-01-14 16:58:49 +00:00
repo.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
repo_branch.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
repo_collaboration.go feat(api): Add assignees APIs (#809) 2026-06-20 19:51:46 +00:00
repo_commit.go Add ListStatusesBySHA and sort/state filters for commit statuses (#839) 2026-08-19 19:09:17 +00:00
repo_commit_test.go Add ListStatusesBySHA and sort/state filters for commit statuses (#839) 2026-08-19 19:09:17 +00:00
repo_file.go Refine SDK type naming and add deprecated compatibility aliases (#802) 2026-05-26 04:13:47 +00:00
repo_key.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
repo_label.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
repo_migrate.go Move functions to have less files on the root folder (#800) 2026-05-25 16:22:28 +00:00
repo_milestone.go Refine SDK type naming and add deprecated compatibility aliases (#802) 2026-05-26 04:13:47 +00:00
repo_misc.go Move functions to have less files on the root folder (#800) 2026-05-25 16:22:28 +00:00
repo_protection.go Move functions to have less files on the root folder (#800) 2026-05-25 16:22:28 +00:00
repo_stars.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
repo_tag.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
repo_template.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
repo_topics.go Move functions to have less files on the root folder (#800) 2026-05-25 16:22:28 +00:00
repo_watch.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
services.go feat: add project APIs (#831) 2026-08-10 22:23:16 +00:00
settings.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
user.go Move functions to have less files on the root folder (#800) 2026-05-25 16:22:28 +00:00
user_app.go Add current access token APIs (GET/DELETE /token) (#835) 2026-08-22 04:41:25 +00:00
user_app_test.go Add current access token APIs (GET/DELETE /token) (#835) 2026-08-22 04:41:25 +00:00
user_block.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
user_email.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
user_follow.go refactor: move Client business APIs behind service entrypoints (#799) 2026-05-25 02:44:53 +00:00
user_keys.go Move functions to have less files on the root folder (#800) 2026-05-25 16:22:28 +00:00
version.go Add API to delete all repositories of an organization (#836) 2026-08-19 23:01:31 +00:00
version_test.go Move code from gitea sub folder to root folder (#798) 2026-05-24 18:35:44 +00:00
wiki.go Refine SDK type naming and add deprecated compatibility aliases (#802) 2026-05-26 04:13:47 +00:00

Gitea SDK for Go

License: MIT Release Join the chat at https://img.shields.io/discord/322538954119184384.svg Go Report Card GoDoc

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.