Replies: 5 comments 2 replies
-
Happy to help building that script, sounds like use case that fits @octoherd's current scope. Is there any place I can find out more what you want to do? Could it all be done programmatically with existing data or would you need to prompt to enter e.g. the repository name for each package you want to migrate out of the monorepo? |
Beta Was this translation helpful? Give feedback.
-
This would make sense to me: An extract command that would ask:
|
Beta Was this translation helpful? Give feedback.
-
I assume the script would do the following
I assume you'd also want to create additional files for testing/building/CI? Does that sound right? Do all the packages have the 1:1 mapping of folder name to label name? |
Beta Was this translation helpful? Give feedback.
-
Yeah this is the hard part, but also the part where we can shed some of the monorepo weight.. We should not impose the whole monorepo building & testing setup, on these hopefully leaner repositories.
yeah pretty much! |
Beta Was this translation helpful? Give feedback.
-
An Octokit script wouldn't interact with the local file system, so it wouldn't run any git commands. It would work directly against GitHub's APIs. I think with git there are ways to git history and preserve authorship of the a directory, when moved into a new repository. That would not be possible with Octoherd. Would that be a problem? The core bit of this functionality would be a folder copy feature, from one repository to another. That would be useful outside of Octoherd, it can be implemented as an Octokit plugin. The plugin can later be used in the Octoherd script. I'd start with that. |
Beta Was this translation helpful? Give feedback.
-
I had a conversation with the storybook team this morning and they mentioned an issue with sunsetting packages out of their main monorepo. They still want the package to existing, but need to move the contents and issues into its own repo.
Curious if a script could be made to transfer folders to their own repo. Issues labeled for that package could also be transferred in a similar way.
cc/ @shilman @ndelangen in case more context is needed
Beta Was this translation helpful? Give feedback.
All reactions