{"id":13698199,"url":"https://github.com/octoherd/script-create-repositories-from-script-folders","last_synced_at":"2025-05-04T03:31:03.653Z","repository":{"id":43332683,"uuid":"343952113","full_name":"octoherd/script-create-repositories-from-script-folders","owner":"octoherd","description":"An octoherd script that creates new repositories from folders","archived":false,"fork":false,"pushed_at":"2025-04-15T15:30:41.000Z","size":199,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-26T12:39:19.801Z","etag":null,"topics":["octoherd-script"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/octoherd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-03-03T00:27:48.000Z","updated_at":"2025-04-15T15:30:44.000Z","dependencies_parsed_at":"2024-06-04T09:41:37.657Z","dependency_job_id":"da73f95d-13dc-48fa-b067-758c8ac02f40","html_url":"https://github.com/octoherd/script-create-repositories-from-script-folders","commit_stats":{"total_commits":95,"total_committers":4,"mean_commits":23.75,"dds":"0.25263157894736843","last_synced_commit":"70f981950b67a2d7165d9f00e8298e996740332b"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octoherd%2Fscript-create-repositories-from-script-folders","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octoherd%2Fscript-create-repositories-from-script-folders/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octoherd%2Fscript-create-repositories-from-script-folders/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octoherd%2Fscript-create-repositories-from-script-folders/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/octoherd","download_url":"https://codeload.github.com/octoherd/script-create-repositories-from-script-folders/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252283577,"owners_count":21723503,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["octoherd-script"],"created_at":"2024-08-02T19:00:41.468Z","updated_at":"2025-05-04T03:31:03.174Z","avatar_url":"https://github.com/octoherd.png","language":"JavaScript","funding_links":[],"categories":["Scripts"],"sub_categories":[],"readme":"# create-repositories-from-folder\n\n\u003e An [octoherd](https://github.com/octoherd) script that creates new repositories from folders\n\nThis script is specific to the needs of a one-time migration for [@octoherd](https://github.com/octoherd). But it might be a good starting point if you need to create a script to eject a monorepo setup yourself.\n\n## Usage\n\nMinimal usage\n\n```\n$ npx @octoherd/script-create-repositories-from-script-folders \\\n  --path-to-folders \"scripts\"\n```\n\nPass all options as CLI flags to avoid user prompts\n\n```\n$ npx @octoherd/script-create-repositories-from-script-folders \\\n  --path-to-folders \"scripts\" \\\n  -T ghp_0123456789abcdefghjklmnopqrstuvwxyzA \\\n  -R \"octoherd/repository-with-script-folders\"\n```\n\n## Options\n\n| option                       | type             | description                                                                                                                                                                                                                                 |\n| ---------------------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `--path-to-folders`          | string           | **Required.** Relative path to where the folders are located                                                                                                                                                                                |\n| `--octoherd-token`, `-T`     | string           | A personal access token ([create](https://github.com/settings/tokens/new?scopes=repo)). Script will create one if option is not set                                                                                                         |\n| `--octoherd-repos`, `-R`     | array of strings | One or multiple space-separated repositories in the form of `repo-owner/repo-name`. `repo-owner/*` will find all repositories for one owner. `*` will find all repositories the user has access to. Will prompt for repositories if not set |\n| `--octoherd-bypass-confirms` | boolean          | Bypass prompts to confirm mutating requests                                                                                                                                                                                                 |\n\n## License\n\n[ISC](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctoherd%2Fscript-create-repositories-from-script-folders","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foctoherd%2Fscript-create-repositories-from-script-folders","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctoherd%2Fscript-create-repositories-from-script-folders/lists"}