From 1ea893298cec7b4c9e160560a19e96704bb6b586 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 7 Jun 2026 10:42:05 +0300 Subject: feat(showcase): add human-readable cgit access hint with obfuscated URL --- internal/showcase/gemtext_format.go | 2 +- internal/showcase/showcase_test.go | 4 ++-- internal/version/version.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'internal') diff --git a/internal/showcase/gemtext_format.go b/internal/showcase/gemtext_format.go index 11935e7..26c93f7 100644 --- a/internal/showcase/gemtext_format.go +++ b/internal/showcase/gemtext_format.go @@ -232,6 +232,6 @@ func writeProjectLinks(builder *strings.Builder, summary ProjectSummary) { builder.WriteString(fmt.Sprintf("=> %s View on GitHub\n", summary.GitHubURL)) } if summary.CgitURL != "" { - builder.WriteString(fmt.Sprintf("=> %s View in cgit\n", summary.CgitURL)) + builder.WriteString(fmt.Sprintf("For cgit access go to c-git dot f3s dot buetow dot org slash %s\n", summary.Name)) } } diff --git a/internal/showcase/showcase_test.go b/internal/showcase/showcase_test.go index 09d707f..625414f 100644 --- a/internal/showcase/showcase_test.go +++ b/internal/showcase/showcase_test.go @@ -162,8 +162,8 @@ func TestFormatGemtext_IncludesCgitLink(t *testing.T) { }, }) - if !strings.Contains(content, "=> https://cgit.f3s.buetow.org/cpuinfo/ View in cgit\n") { - t.Fatalf("cgit link was not rendered: %s", content) + if !strings.Contains(content, "For cgit access go to c-git dot f3s dot buetow dot org slash cpuinfo\n") { + t.Fatalf("cgit hint text was not rendered: %s", content) } } diff --git a/internal/version/version.go b/internal/version/version.go index 3983eef..9ecdead 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -7,7 +7,7 @@ import ( var ( // Version is the current version of gitsyncer - Version = "0.18.3" + Version = "0.18.4" // GitCommit is the git commit hash at build time GitCommit = "unknown" -- cgit v1.2.3