mirror your GitHub repos to tangled.org automatically
1

Configure Feed

Select the types of activity you want to include in your feed.

1/** 2 * Map a knot hostname (as stored on `sh.tangled.repo`) to the SSH host we 3 * actually push to. For the appview-hosted knot, the HTTPS XRPC endpoint is 4 * `knot1.tangled.sh` (Cloudflare-fronted) but SSH lives on `tangled.org`. 5 * Self-hosted knots serve both on the same host (their `knot` value may 6 * include a `:port` suffix for non-default SSH; git URL parsing handles it). 7 * 8 * The official UI does this same mapping in 9 * `appview/pages/templates/repo/empty.html`. If tangled adds more 10 * appview-hosted knots in future this'll need updating \u2014 see PLAN.md 11 * "Deferred / follow-ups". 12 */ 13export function sshHostForKnot(knot: string): string { 14 if (knot === 'knot1.tangled.sh') return 'tangled.org' 15 return knot 16}