Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(regroup): clean up migration scripts
Elian Doran264b75cd68cd
diff --git a/scripts/repo-migration/README.md b/scripts/repo-migration/README.mdnew file mode 100644index 0000000000..3266b69dd6--- /dev/null+++ b/scripts/repo-migration/README.md@@ -0,0 +1,13 @@+# Repo migration scripts++> [!NOTE]+> These scripts were designed to be single use only, since they took care of migrating between repos. As such, they are not actively maintained and are to be used for reference only.++These scripts were used in the process of migrating from the forked [Notes](https://github.com/TriliumNext/Notes) repo to the original [Trilium](https://github.com/TriliumNext/Trilium) repo.+Since Git only migrates the code and not the GitHub-specific data, we had to create scripts that handle the migration of:++* Issues, using the "Transfer" function for each issue (via `gh cli`).+ * The migration logs are available in `migrated-issues.txt`.+* Discussions, which transferred each discussion from the original repo. This one is a bit more complicated (and potentially flaky) since it works via playwright, by manually selecting the "Transfer" function (no API available at the time).+ * The migration logs are available in`migrated-discussions.txt`.+* Releases, by manually downloading the assets from the source repo and creating new releases into the destination repo.\ No newline at end of filediff --git a/scripts/migrate-releases.js b/scripts/repo-migration/migrate-releases.jssimilarity index 100%rename from scripts/migrate-releases.jsrename to scripts/repo-migration/migrate-releases.jsdiff --git a/port-discussions.log b/scripts/repo-migration/migrated-discussions.txtsimilarity index 100%rename from port-discussions.logrename to scripts/repo-migration/migrated-discussions.txtdiff --git a/scripts/migrated-issues.txt b/scripts/repo-migration/migrated-issues.txtsimilarity index 100%rename from scripts/migrated-issues.txtrename to scripts/repo-migration/migrated-issues.txtdiff --git a/scripts/port-discussions.ts b/scripts/repo-migration/port-discussions.tssimilarity index 100%rename from scripts/port-discussions.tsrename to scripts/repo-migration/port-discussions.tsdiff --git a/scripts/port-issues.ts b/scripts/repo-migration/port-issues.tssimilarity index 100%rename from scripts/port-issues.tsrename to scripts/repo-migration/port-issues.ts