Move from GitHub to Tangled
0
fork

Configure Feed

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

use tangled.org domain, disable readme modifications

- update knot from knot1.tangled.sh to tangled.org
- update git remote URL to use tangled.org
- skip readme modification that pushes back to github

TKTK e06d1504 e82c82f7

+12 -13
+8 -9
package-lock.json
··· 13 13 "dotenv": "^16.0.0" 14 14 }, 15 15 "devDependencies": { 16 + "@types/node": "^20.0.0", 16 17 "ts-node": "^10.9.2", 17 18 "typescript": "^5.9.3" 18 19 } ··· 144 145 "license": "MIT" 145 146 }, 146 147 "node_modules/@types/node": { 147 - "version": "24.7.1", 148 - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.7.1.tgz", 149 - "integrity": "sha512-CmyhGZanP88uuC5GpWU9q+fI61j2SkhO3UGMUdfYRE6Bcy0ccyzn1Rqj9YAB/ZY4kOXmNf0ocah5GtphmLMP6Q==", 148 + "version": "20.19.35", 149 + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.35.tgz", 150 + "integrity": "sha512-Uarfe6J91b9HAUXxjvSOdiO2UPOKLm07Q1oh0JHxoZ1y8HoqxDAu3gVrsrOHeiio0kSsoVBt4wFrKOm0dKxVPQ==", 150 151 "dev": true, 151 152 "license": "MIT", 152 - "peer": true, 153 153 "dependencies": { 154 - "undici-types": "~7.14.0" 154 + "undici-types": "~6.21.0" 155 155 } 156 156 }, 157 157 "node_modules/acorn": { ··· 306 306 "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", 307 307 "dev": true, 308 308 "license": "Apache-2.0", 309 - "peer": true, 310 309 "bin": { 311 310 "tsc": "bin/tsc", 312 311 "tsserver": "bin/tsserver" ··· 325 324 } 326 325 }, 327 326 "node_modules/undici-types": { 328 - "version": "7.14.0", 329 - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.14.0.tgz", 330 - "integrity": "sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==", 327 + "version": "6.21.0", 328 + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", 329 + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", 331 330 "dev": true, 332 331 "license": "MIT" 333 332 },
+4 -4
src/index.ts
··· 12 12 const GITHUB_USER = process.env.GITHUB_USER!; 13 13 const ATPROTO_DID = process.env.ATPROTO_DID!; 14 14 const BLUESKY_PDS = process.env.BLUESKY_PDS!; 15 - const TANGLED_BASE_URL = `git@tangled.sh:${ATPROTO_DID}`; 15 + const TANGLED_BASE_URL = `git@tangled.org:${ATPROTO_DID}`; 16 16 17 17 const agent = new AtpAgent({ service: BLUESKY_PDS }); 18 18 ··· 53 53 } 54 54 55 55 const originPushUrl = run("git remote get-url --push origin", repoDir); 56 - if (originPushUrl.includes("tangled.sh")) { 56 + if (originPushUrl.includes("tangled.sh") || originPushUrl.includes("tangled.org")) { 57 57 run(`git remote set-url --push origin ${cloneUrl}`, repoDir); 58 58 console.log(`[REMOTE] Reset origin push URL to GitHub`); 59 59 } ··· 159 159 const record: TangledRepoRecord = { 160 160 $type: "sh.tangled.repo", 161 161 name: repoName, 162 - knot: "knot1.tangled.sh", 162 + knot: "tangled.org", 163 163 createdAt: new Date().toISOString(), 164 164 description: description ?? repoName, 165 165 source: `https://github.com/${githubUser}/${repoName}`, ··· 291 291 } 292 292 293 293 await ensureTangledRemoteAndPush(repoDir, repoName, clone_url); 294 - updateReadme(BASE_DIR, repoName, ATPROTO_DID); 294 + // updateReadme(BASE_DIR, repoName, ATPROTO_DID); 295 295 const result = await ensureTangledRecord(agent, ATPROTO_DID, GITHUB_USER, repoName, description); 296 296 297 297 if (!result.existed) {