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

Develop routines to bulk migrate a set of repos #1

Open
bswck opened this issue Feb 6, 2024 · 4 comments
Open

Develop routines to bulk migrate a set of repos #1

bswck opened this issue Feb 6, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@bswck
Copy link
Member

bswck commented Feb 6, 2024

From @jaraco:

In order to facilitate the reliable transfer of repos from jaraco to coherent-oss, I'd like to see if we can develop a routine to automate much of the process.
I found this feature request on using the GH CLI to transfer issues. Although it's not supported as a first-class feature, it does describe how to invoke the API to trigger a transfer. It's unclear to me if that merely initiates the transfer or if it enacts it.

@bswck bswck converted this from a draft issue Feb 6, 2024
@bswck
Copy link
Member Author

bswck commented Feb 6, 2024

I've investigated the transferring feature and I'm sure that the request only initiates the transfer, because in case of transferring a repo from an old personal account to a new one it's needed to wait for a consent from the new owner account. Additionally, I've tested the migration of a temporary repo to this org and the response from the GitHub API only presents the old repository data, so I am assuming that the new data remains unknown until the transfer is set—I've seen a note that the transfer process is asynchronous, according to the docs:

The response will contain the original owner, and the transfer will continue asynchronously.

Fortunately, when migrating projects from a personal account to an organization, no additional confirmations are needed.
We can fully automate the process and they have to run on your end.

@bswck bswck self-assigned this Feb 6, 2024
@bswck
Copy link
Member Author

bswck commented Feb 6, 2024

I'll try to develop these routines in jaraco.develop. It will filter out projects not labeled with [fork] and migrate these.

@bswck bswck changed the title Develop routines to to bulk migrate a set of repos Develop routines to bulk migrate a set of repos Feb 6, 2024
@bswck bswck added this to the Migration milestone Feb 6, 2024
@bswck bswck added the enhancement New feature or request label Feb 6, 2024
@bswck
Copy link
Member Author

bswck commented Feb 13, 2024

It will filter out projects not labeled with [fork] and migrate these.

Wrong. We can weed out projects that are already old along the way and can stay in the @jaraco account as they are no longer maintained. The project list will appear in #3

@bswck
Copy link
Member Author

bswck commented Feb 13, 2024

Need help: #2.

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
Status: Todo
Development

No branches or pull requests

1 participant