From dd41652e99fbe750427f201ad6eea374f30644f4 Mon Sep 17 00:00:00 2001 From: RCD <90105158+Finesssee@users.noreply.github.com> Date: Mon, 23 Feb 2026 15:38:56 +0700 Subject: [PATCH] feat: add CODEOWNERS, PR template, and /health endpoint --- .github/CODEOWNERS | 22 ++++++++++++++++++++++ .github/pull_request_template.md | 21 +++++++++++++++++++++ internal/api/server.go | 5 +++++ 3 files changed, 48 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/pull_request_template.md diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 00000000..d955174c --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,22 @@ +# Default owner for the entire repository +* @Finesssee + +# Core proxy logic +/internal/runtime/executor/ @Finesssee +/internal/translator/ @Finesssee +/sdk/ @Finesssee + +# Authentication providers +/internal/auth/ @Finesssee + +# API and middleware +/internal/api/ @Finesssee + +# WebUI dashboard +/webui/ @Finesssee + +# CI/CD and infrastructure +/.github/ @Finesssee +/Dockerfile @Finesssee +/docker-compose.yml @Finesssee +/.goreleaser.yml @Finesssee diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 00000000..138ab9c2 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,21 @@ +## Description + + + +## Changes + + +- + +## Testing + + +- [ ] `go test ./...` passes +- [ ] `go vet ./...` passes +- [ ] Manually tested with relevant provider(s) + +## Checklist + +- [ ] Code follows existing patterns and conventions +- [ ] No secrets or credentials committed +- [ ] No changes under `internal/translator/` (restricted path) diff --git a/internal/api/server.go b/internal/api/server.go index 5daefc99..a05b99b1 100644 --- a/internal/api/server.go +++ b/internal/api/server.go @@ -338,6 +338,11 @@ func (s *Server) setupRoutes() { v1beta.GET("/models/*action", geminiHandlers.GeminiGetHandler) } + // Health check endpoint + s.engine.GET("/health", func(c *gin.Context) { + c.JSON(http.StatusOK, gin.H{"status": "ok"}) + }) + // Root endpoint s.engine.GET("/", func(c *gin.Context) { c.JSON(http.StatusOK, gin.H{