Skip to content

Update npm package migration script to have a cutoff date #96

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

Merged

Conversation

a-magdy
Copy link
Contributor

@a-magdy a-magdy commented May 2, 2025

This pull request introduces several improvements to the scripts/migrate-npm-packages-between-github-instances.sh script and updates the .env.example file to support environment variables. The changes enhance usability, add new functionality, and improve performance by optimizing API calls.

Environment Variable Support:

  • .env.example: Added a template for required environment variables (SOURCE_HOST, SOURCE_ORG, GH_SOURCE_PAT, TARGET_HOST, TARGET_ORG, GH_TARGET_PAT) and a command to load them into the shell.

Script Enhancements:

Performance Optimization:

@joshjohanning
Copy link
Owner

joshjohanning commented Jun 16, 2025

Thank you @a-magdy! I love a lot of the changes here. I might default it to migrate everything instead of 1 year (since I think some people might miss this param otherwise?). Do you have a preferred way to do this?

Otherwise, great PR, thank you! 🙇

a-magdy added 2 commits June 17, 2025 12:43
…FF_DATE default to be empty, which in turns will migrate all versions (keeping existing behaviour)
@a-magdy
Copy link
Contributor Author

a-magdy commented Jun 17, 2025

Thanks for taking the time, makes sense. I've updated the script to keep the existing default behavior

Copy link
Owner

@joshjohanning joshjohanning left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks for the great contribution @a-magdy 🙇

@joshjohanning joshjohanning merged commit 7bec0a7 into joshjohanning:main Jun 17, 2025
2 checks passed
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.

2 participants