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

GitHub Packages: Migrate NuGet Packages Between GitHub Instances | josh-ops #29

Open
utterances-bot opened this issue Aug 31, 2023 · 6 comments

Comments

@utterances-bot
Copy link

GitHub Packages: Migrate NuGet Packages Between GitHub Instances | josh-ops

Migrating NuGet packages stored in GitHub Packages from one instance to another

https://josh-ops.com/posts/github-packages-migrate-nuget-packages/

Copy link

Hi Josh, it seems that graphql is no longer supporting nuget packages .. do you have any workaround ?
gh: nuget registry is not supported by GraphQL APIs.

@joshjohanning
Copy link
Owner

@ivohlavaty Thank you for motiving me to finally make the changes! 🙇 I pushed the new URL format to the repo linked in the post.

I will update the post shortly - the only difference is we need to pass in a <source-pat> when calling now.

Try it out and let me know if it works for you! Cheers

Copy link

@joshjohanning thanks a lot, it's working

@joshjohanning
Copy link
Owner

@ivohlavaty excellent! great to hear 😄

Copy link

Hi @joshjohanning .. I just discovered that you are missing pagination in your script. I was curious how's possible that I miss random packages and then figured out it fetches only the first page ..
gh api "/orgs/solarwinds/packages?package_type=nuget&page=2" is required to sync another page

@joshjohanning
Copy link
Owner

Great catch @ivohlavaty! Totally missed that. That's the main reason why I used gh api was so I could use the gh api --paginate option 😄

Fixed now!

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

No branches or pull requests

3 participants