# go-gitea/gitea

> Gitea is a self-hosted, all-in-one software development service for Git hosting, code review, issue tracking, team collaboration, package registry and CI/CD. It runs as one service that takes Git repositories and development work as input and exposes code management, review, tracking and automation through a web interface for users and teams. Gitea is written in Go.

Source: https://github.com/go-gitea/gitea
Indexed: commit a1cc651 on 2026-10-13 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Type: Command-line tool
- Language: Go
- Stars: 59,103 at index time
- License: MIT
- Code health: 7.0/10, Good
- Last commit: 2026-10-13
- Contributors: 1,858

## How it works

The cmd directory holds the command-line interface, which registers subcommands, parses global flags, sets up logging and runtime paths, and wires command handlers. The modules directory provides shared building blocks such as configuration access, structured logging, JSON encoding and decoding, and common utilities. The models directory defines the persistence and query layer for domain objects such as issues, repos, users and actions, backed by a shared database engine and session context. The modelmigration directory defines an ordered set of database migration tasks that bring the database schema up to date. The routers directory contains the web and API handlers, for example routers/web/repo/pull.go for pull requests, and the services directory holds the logic they call, such as services/gitdiff/gitdiff.go for diffs. The build directory contains generators like build/generate-openapi.go that produce embedded artifacts from source inputs.

- build/generate-bindata.go: entry point
- build/generate-emoji.go: entry point
- build/generate-gitignores.go: entry point
- build/generate-go-licenses.go: entry point
- build/generate-openapi.go: entry point
Modules: modules, services, routers, models, tests, modelmigration, web_src, cmd. 3,691 files, 415,720 lines, 23,871 symbols.

## Code health

- Score: 7.0/10 (Good)
- Trend: 8.0 on 2026-07-17, 7.0 on 2026-10-13
- Rank: #132 of 4,000+ indexed repos
- Hotspots: routers/web/repo/actions/view.go, services/gitdiff/gitdiff.go, routers/web/repo/pull.go, web_src/js/components/RepoActionView.vue, routers/api/v1/repo/action.go
- Lowest file: routers/web/repo/pull.go
- Dead code: 25 findings

## Maintenance

- Last commit 2026-10-13, first commit 2014-02-12, 20,696 commits
- 1,858 contributors, bus factor 4

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/go-gitea/gitea/security

## More

- Page: https://repowise.dev/repo/go-gitea/gitea
- Ask this codebase: https://repowise.dev/repo/go-gitea/gitea/chat
- Docs: https://repowise.dev/repo/go-gitea/gitea/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/go-gitea/gitea
