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

Support for personal repository migrations from Azure DevOps #1203

Open
XVII opened this issue Jan 4, 2024 · 2 comments
Open

Support for personal repository migrations from Azure DevOps #1203

XVII opened this issue Jan 4, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@XVII
Copy link

XVII commented Jan 4, 2024

Hello! I have a few hundred repos in Azure DevOps that I'd like to migrate to GitHub however there is a dependency on having an Organization. I'd prefer these to be kept as personal repositories rather than filing them under an Organization.

I'm unfamiliar with Githubs Graph API so unsure if it's a requirement or just was built around an assumption of an organization (or perhaps it was previously paywalled?). Or, maybe it's Enterprise plans only?

Putting the username as the org-name doesn't work.

The StartRepositoryMigrationInput (https://docs.github.com/en/graphql/reference/input-objects#startrepositorymigrationinput) method appears to want the OwnerID (this script resolves from org name).

Is there anything stopping this from being a User/Personal ID?

Ideal solution

  • Adapt ado2gh parameters to accept a --github-user in place of a --github-org

Possible workaround

  • First migrate all repos to an Organization, then move them (individually 😰) from Organization to Personal?
@timrogers
Copy link
Contributor

@ShadowXVII 👋 Thanks for reaching out!

I'm afraid that, at this time, we don't support migrating user-owned repos.

This is a general and deliberate limitation of all of our migration tools, so frankly it's unlikely that we'll change this in the medium term.

I would recommend moving the repositories to an organization and then migrating them to GitHub. You'd be able to build automations using the GitHub and ADO APIs to do those transfers pretty seamlessly.

I'm sorry that this isn't the answer you were hoping for! We will still keep this issue open as it's a valid feature request, and there's a non-zero chance that we'll come back to it somewhere down the line!

@timrogers timrogers added the enhancement New feature or request label Jan 4, 2024
@XVII
Copy link
Author

XVII commented Jan 4, 2024

Thanks for the background, that's useful to know.

For sole developers/hobbyists there's a conflict between choosing to use personal repos vs. an organisation. Perhaps that's more a general feedback item for the marketing/messaging people on a recommended approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants