Back to articles
Gitea Has a Free API — Lightweight Self-Hosted Git
How-ToDevOps

Gitea Has a Free API — Lightweight Self-Hosted Git

via Dev.to DevOpsAlex Spinov

Gitea is a lightweight, self-hosted Git service. It is like GitHub but runs on minimal resources — even a Raspberry Pi. What Is Gitea? Gitea provides Git hosting, code review, CI/CD, and project management in a single Go binary. Features: Git repository hosting Pull requests and code review Issues and project boards CI/CD (Gitea Actions, GitHub Actions compatible) Package registry Single binary, low resources Quick Start docker run -p 3000:3000 -p 22:22 gitea/gitea:latest REST API # List repositories curl https://gitea.example.com/api/v1/repos/search \ -H "Authorization: token YOUR_TOKEN" # Create repository curl -X POST https://gitea.example.com/api/v1/user/repos \ -H "Authorization: token YOUR_TOKEN" \ -d '{"name":"new-repo","private":false,"description":"My project"}' # Create issue curl -X POST https://gitea.example.com/api/v1/repos/OWNER/REPO/issues \ -H "Authorization: token YOUR_TOKEN" \ -d '{"title":"Bug report","body":"Steps to reproduce..."}' # List pull requests curl https:/

Continue reading on Dev.to DevOps

Opens in a new tab

Read Full Article
4 views

Related Articles