Skip to content

chore: migrate service URLs from Leapcell to Fly.io and add git to Docker image - #73

Merged
livrasand merged 1 commit into
mainfrom
chore--migrate-service-to-Fly
Jun 3, 2026
Merged

chore: migrate service URLs from Leapcell to Fly.io and add git to Docker image#73
livrasand merged 1 commit into
mainfrom
chore--migrate-service-to-Fly

Conversation

@livrasand

@livrasand livrasand commented Jun 3, 2026

Copy link
Copy Markdown
Owner

Actualizado SERVICE_URL por defecto de gitgost.leapcell.app a gitgost.fly.dev en .env.example, internal/github/ntfy.go, README.md, .github/workflows/release.yml y templates HTML. Agregado git al Dockerfile con apk add. Implementada tabla comments en schema.sql con políticas RLS. Agregados métodos InsertComment y GetTotalComments en database/supabase.go. Integrado tracking de comentarios en CreateAnonymousCommentHandler y CreateAnonymou

Summary by CodeRabbit

  • New Features

    • Added anonymous comments functionality with persistent storage
    • Enhanced UI with Tor access tab and animated PR/comment counters
    • Updated terminal usage examples
  • Documentation

    • Updated all documentation and examples to reflect new service URL
  • Chores

    • Migrated service infrastructure to new hosting provider
    • Added Git dependency to Docker image

…cker image

Actualizado SERVICE_URL por defecto de gitgost.leapcell.app a gitgost.fly.dev en .env.example, internal/github/ntfy.go, README.md, .github/workflows/release.yml y templates HTML. Agregado git al Dockerfile con apk add. Implementada tabla comments en schema.sql con políticas RLS. Agregados métodos InsertComment y GetTotalComments en database/supabase.go. Integrado tracking de comentarios en CreateAnonymousCommentHandler y CreateAnonymou
@coderabbitai

coderabbitai Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Walkthrough

The PR adds anonymous comment persistence infrastructure, migrates the hosted service domain from leapcell.app to fly.dev, and updates the frontend to display comment counts and support Tor access. Core changes include a new comments database table, Supabase client operations for comment insertion and counting, handler wiring to persist comment URLs, and comprehensive domain reference updates across configuration, code, and documentation.

Changes

Anonymous comments feature with domain infrastructure

Layer / File(s) Summary
Comments schema and Supabase API client
database/schema.sql, internal/database/supabase.go
New comments table with RLS policies and created_at index; CommentRecord struct and InsertComment/GetTotalComments Supabase operations enable comment persistence and counting.
Backend comment handler integration
internal/http/handlers.go
StatsHandler fetches total_comments; CreateAnonymousCommentHandler and CreateAnonymousPRCommentHandler persist comment URLs via InsertComment; RecentPRsHandler gracefully handles fetch errors and continues serving cached data.
Service domain migration
.env.example, internal/github/ntfy.go, internal/github/pr.go, internal/http/handlers.go
All domain references updated from gitgost.leapcell.app to gitgost.fly.dev in environment defaults, service URL fallbacks, GitHub issue/PR templates, and HTTP response templates (thank-you page, badge SVG).
Documentation domain updates
README.md
All examples, badge URLs, and command endpoints updated to use gitgost.fly.dev; covers git remote commands, badge instructions, and admin service endpoints.
Frontend domain and comment counter
web/index.html
Meta tags (Open Graph, Twitter, JSON-LD) and API_BASE updated to fly.dev; loadStats() animated to display both PR and comment counters with error fallback.
Frontend Tor access and layout
web/index.html
Added Tor tab to usage terminal; moved Tor instructions earlier as reusable panel; removed duplicate Tor section and badge markup; updated tab switching logic; removed loadRecentPRs initialization and build audit section.
Build and CI infrastructure
Dockerfile, .github/workflows/release.yml
Dockerfile adds git via apk add --no-cache git; release workflow downloads binary from gitgost.fly.dev instead of leapcell.app.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

  • livrasand/gitGost#48: Adds anonymous PR comment system that the main PR extends with database persistence via the new InsertComment/GetTotalComments infrastructure.
  • livrasand/gitGost#22: Updates anonymous-contribution badge URLs and domains, directly related to the main PR's README badge and documentation URL migrations.
  • livrasand/gitGost#63: Introduces panic-button service URL fallback in NtfyServiceURL() that the main PR updates to use the new fly.dev domain.

Suggested reviewers

  • gitgost-anonymous

Poem

🐇 A domain hops from coast to coast,
Leapcell gives way to Fly's fine host,
Comments persist in Supabase deep,
While Tor routes whisper secrets to keep,
Counters dance, stats align—
The feature's complete, and perfectly fine! 🚀

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 75.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main changes: migrating service URLs from Leapcell to Fly.io and adding git to the Docker image, which are the primary alterations across the changeset.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore--migrate-service-to-Fly

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@livrasand livrasand linked an issue Jun 3, 2026 that may be closed by this pull request
@livrasand livrasand self-assigned this Jun 3, 2026
@livrasand
livrasand merged commit b285f86 into main Jun 3, 2026
1 check was pending
@livrasand
livrasand deleted the chore--migrate-service-to-Fly branch June 3, 2026 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Website is currently down

2 participants