chore: anonymize internal URLs for public release

Replace git.wxs.ro with forgejo.example.com in tests and docs.
Add public repo guidelines to CLAUDE.md.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Vlad MocanuandClaude Opus 4.6 committed 2026-02-27 16:36:34 +02:00
1 parent b01c498dd9
commit fba53fc8a0
5 files changed
+56 -48

No files matched your search

+5 -5
View File
@@ -70,7 +70,7 @@ describe("M7: Platform routing for mode handlers", () => {
it('returns "forgejo" when GITHUB_SERVER_URL is not github.com', () => {
delete process.env.PLATFORM;
delete process.env.FORGEJO;
process.env.GITHUB_SERVER_URL = "https://git.wxs.ro";
process.env.GITHUB_SERVER_URL = "https://forgejo.example.com";
expect(detectPlatform()).toBe("forgejo");
});
@@ -139,7 +139,7 @@ describe("M7: Forgejo PR compare URL format", () => {
);
const url = createForgejoPrCompareUrl(
"https://git.wxs.ro",
"https://forgejo.example.com",
"owner",
"repo",
"main",
@@ -150,7 +150,7 @@ describe("M7: Forgejo PR compare URL format", () => {
expect(url).toContain("expand=1");
expect(url).not.toContain("quick_pull=1");
expect(url).toContain("git.wxs.ro");
expect(url).toContain("forgejo.example.com");
expect(url).toContain("compare/main...claude/fix-bug");
});
});
@@ -167,10 +167,10 @@ describe("M7: unified updateCommentBody handles both platforms", () => {
const result = updateCommentBody({
currentBody:
"Claude Code is working… ⏳\n\nI'll analyze this and get back to you.\n\n[View job run](https://git.wxs.ro/owner/repo/actions/runs/123)",
"Claude Code is working… ⏳\n\nI'll analyze this and get back to you.\n\n[View job run](https://forgejo.example.com/owner/repo/actions/runs/123)",
actionFailed: false,
executionDetails: { duration_ms: 30000 },
jobUrl: "https://git.wxs.ro/owner/repo/actions/runs/123",
jobUrl: "https://forgejo.example.com/owner/repo/actions/runs/123",
triggerUsername: "testuser",
});