Anonymous contribution via gitGost - #18
Merged
Merged
Conversation
…ration Agregado archivo .env.example con variables de entorno documentadas (GITHUB_TOKEN requerido, Supabase opcional). Actualizado README con sección "Hosted Configuration" explicando setup de GitHub token, variables de entorno y configuración opcional de Supabase. Creado schema.sql con tabla prs, índices, RLS policies y comentarios de privacidad. Implementado cliente Supabase en internal/database/supabase.go con métodos Ins
Contributor
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThis pull request introduces Supabase-based database persistence for anonymous PR tracking. It adds environment configuration for GitHub token and Supabase credentials, implements a SQL schema with row-level security policies, creates a Supabase client for PR operations, refactors handlers to use database-backed statistics, and updates the web UI with dynamic API endpoints. Changes
Sequence Diagram(s)sequenceDiagram
participant Web as Web Client
participant Server as Git Server
participant Handler as RecordPR Handler
participant DB as Supabase DB
Web->>Server: git push (with PR details)
Server->>Handler: ReceivePack (owner, repo, prURL)
Handler->>Handler: Extract PR metadata
Handler->>DB: InsertPR(ctx, owner, repo, prURL)
alt PR not duplicate
DB->>DB: Insert row in prs table
DB-->>Handler: 201 Created
Handler->>Handler: Log success
else URL already exists
DB-->>Handler: 409 Conflict
Handler->>Handler: Log duplicate
end
sequenceDiagram
participant Web as Web Client
participant Server as Git Server
participant Stats as StatsHandler
participant Recent as RecentPRsHandler
participant DB as Supabase DB
Web->>Server: GET /api/stats
Server->>Stats: Handle stats request
Stats->>DB: GetTotalPRs(ctx)
DB-->>Stats: Total count
Stats->>DB: GetLatestPRCreatedAt(ctx)
DB-->>Stats: Latest timestamp
Stats-->>Web: {total_prs, latest_pr_timestamp}
Web->>Server: GET /api/recent-prs
Server->>Recent: Handle recent PRs request
Recent->>DB: GetRecentPRs(ctx, limit)
DB-->>Recent: Recent PR records
Recent->>DB: GetTotalPRs(ctx)
DB-->>Recent: Total count
Recent-->>Web: {prs: [...], total_prs}
Estimated code review effort🎯 4 (Complex) | ⏱️ ~50 minutes Poem
✨ Finishing touches
Comment |
livrasand
self-requested a review
January 16, 2026 22:11
livrasand
approved these changes
Jan 16, 2026
This was referenced Feb 23, 2026
This was referenced Jul 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
docs: add environment configuration guide and Supabase database integration
Agregado archivo .env.example con variables de entorno documentadas (GITHUB_TOKEN requerido, Supabase opcional). Actualizado README con sección "Hosted Configuration" explicando setup de GitHub token, variables de entorno y configuración opcional de Supabase. Creado schema.sql con tabla prs, índices, RLS policies y comentarios de privacidad. Implementado cliente Supabase en internal/database/supabase.go con métodos Ins
This is an anonymous contribution made via gitGost.
The original author's identity has been anonymized to protect their privacy.
Summary by CodeRabbit
New Features
Documentation
Chores
✏️ Tip: You can customize this high-level summary in your review settings.