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

Create a script to import projects #526

Merged
merged 9 commits into from
Apr 5, 2023
Merged

Create a script to import projects #526

merged 9 commits into from
Apr 5, 2023

Conversation

AbdulrhmnGhanem
Copy link
Member

@AbdulrhmnGhanem AbdulrhmnGhanem commented Dec 9, 2022

  • Create a script to import v1 projects
  • CI: add action to copy the migration script to our hosts
  • Add repo name to zod error message
  • Expose gitea port to host in deployment environment

Closes #473.

@AbdulrhmnGhanem AbdulrhmnGhanem temporarily deployed to staging December 12, 2022 14:28 — with GitHub Actions Inactive
@AbdulrhmnGhanem AbdulrhmnGhanem force-pushed the ag/migration-script branch 2 times, most recently from 0bf3afa to 35ddf03 Compare December 13, 2022 11:24
@AbdulrhmnGhanem AbdulrhmnGhanem temporarily deployed to staging December 13, 2022 11:25 — with GitHub Actions Inactive
@AbdulrhmnGhanem AbdulrhmnGhanem temporarily deployed to staging December 13, 2022 11:25 — with GitHub Actions Inactive
@AbdulrhmnGhanem AbdulrhmnGhanem temporarily deployed to staging December 13, 2022 11:25 — with GitHub Actions Inactive
@AbdulrhmnGhanem AbdulrhmnGhanem temporarily deployed to staging December 13, 2022 11:25 — with GitHub Actions Inactive
@AbdulrhmnGhanem AbdulrhmnGhanem temporarily deployed to staging December 13, 2022 11:26 — with GitHub Actions Inactive
@AbdulrhmnGhanem AbdulrhmnGhanem temporarily deployed to staging December 13, 2022 11:49 — with GitHub Actions Inactive
@AbdulrhmnGhanem AbdulrhmnGhanem temporarily deployed to staging December 13, 2022 11:49 — with GitHub Actions Inactive
@AbdulrhmnGhanem AbdulrhmnGhanem temporarily deployed to staging December 13, 2022 11:49 — with GitHub Actions Inactive
@AbdulrhmnGhanem AbdulrhmnGhanem temporarily deployed to staging December 13, 2022 11:49 — with GitHub Actions Inactive
@AbdulrhmnGhanem AbdulrhmnGhanem temporarily deployed to staging December 13, 2022 11:52 — with GitHub Actions Inactive
@AbdulrhmnGhanem AbdulrhmnGhanem marked this pull request as ready for review December 13, 2022 12:31
@AbdulrhmnGhanem
Copy link
Member Author

AbdulrhmnGhanem commented Dec 13, 2022

For registry boards, I think we have to use a forked version, I couldn't find a way to change the HEAD from the API, and even if there was a way, it will break mirroring. We will be able to use the original owner username instead of kitspace-forks too.

#535

@AbdulrhmnGhanem AbdulrhmnGhanem marked this pull request as draft December 14, 2022 13:32
@AbdulrhmnGhanem AbdulrhmnGhanem marked this pull request as ready for review December 14, 2022 13:38
@AbdulrhmnGhanem AbdulrhmnGhanem temporarily deployed to staging April 4, 2023 21:33 — with GitHub Actions Inactive
@AbdulrhmnGhanem AbdulrhmnGhanem temporarily deployed to staging April 4, 2023 21:33 — with GitHub Actions Inactive
AbdulrhmnGhanem and others added 8 commits April 4, 2023 23:38
Co-authored-by: Kaspar Emanuel <[email protected]>
1. Embed the `githubToken` into the script during compile time in the
   `copy-import-script.yml` workflow.
2. Generate the `giteaToken` in the same script instead of the
   `generate_gitea_admin_token` secondary script.
@AbdulrhmnGhanem AbdulrhmnGhanem temporarily deployed to staging April 4, 2023 21:39 — with GitHub Actions Inactive
@AbdulrhmnGhanem AbdulrhmnGhanem temporarily deployed to staging April 4, 2023 21:45 — with GitHub Actions Inactive
@AbdulrhmnGhanem AbdulrhmnGhanem temporarily deployed to staging April 4, 2023 21:45 — with GitHub Actions Inactive
@AbdulrhmnGhanem AbdulrhmnGhanem temporarily deployed to staging April 4, 2023 21:45 — with GitHub Actions Inactive
@AbdulrhmnGhanem AbdulrhmnGhanem temporarily deployed to staging April 4, 2023 21:45 — with GitHub Actions Inactive
@AbdulrhmnGhanem AbdulrhmnGhanem temporarily deployed to staging April 4, 2023 21:55 — with GitHub Actions Inactive
Copy link
Member

@kasbah kasbah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested it out, worked great! Some minor fixes remaining.

.github/workflows/copy-import-script.yml Show resolved Hide resolved
scripts/README.md Outdated Show resolved Hide resolved
Co-authored-by: Kaspar Emanuel <[email protected]>
@kasbah kasbah merged commit a0af3ff into master Apr 5, 2023
@AbdulrhmnGhanem AbdulrhmnGhanem deleted the ag/migration-script branch June 29, 2023 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Script for migrating projects from kitspace.org
2 participants