Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration Script - stretch goal #5

Open
bnonni opened this issue Jul 15, 2023 · 2 comments
Open

Migration Script - stretch goal #5

bnonni opened this issue Jul 15, 2023 · 2 comments
Assignees
Labels

Comments

@bnonni
Copy link
Member

bnonni commented Jul 15, 2023

Create a script such that I can run:

yarn migrate https://github.com/username/my-old-bitdevs-repo.git

...and it will pull down the _posts markdown files from the old repo and distribute them accordingly into the content/events and content/posts folder in my new repo.

@bnonni bnonni converted this from a draft issue Jul 15, 2023
@aidadiaz9 aidadiaz9 moved this from Todo to Backlog in BitDevs Upgrade AI 4 All MVP Jul 18, 2023
@sbddesign
Copy link
Member

@niteshbalusu11 you asked me how you would know where to distribute the files. Imagine we are trying to migrate the BitDevs NYC site, for example.

yarn migrate https://github.com/BitDevsNYC/BitDevsNYC.github.io.git

The target is to migrate any files in:

The destinations:

  • Any stray markdown files in the repo root can go to content/pages in the new repo.
  • From _posts, any markdown file with type: blog (in the markdown frontmatter) goes to content/posts in the new repo.
  • Any other markdown file from posts (type: socratic, type: whitepaper, etc...) goes to content/events in the new repo.

@niteshbalusu11
Copy link
Collaborator

Ok, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

3 participants