{"id":21302851,"url":"https://github.com/salt-extensions/salt-extension-migrate","last_synced_at":"2025-03-15T18:44:55.000Z","repository":{"id":254775016,"uuid":"847472690","full_name":"salt-extensions/salt-extension-migrate","owner":"salt-extensions","description":"Tool that aids in migrating sets of modules out of Salt core into a new Salt extension","archived":false,"fork":false,"pushed_at":"2025-03-13T14:24:21.000Z","size":84,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-13T15:29:07.621Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://salt-extensions.github.io/salt-extension-copier/topics/extraction.html","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/salt-extensions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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}},"created_at":"2024-08-25T23:04:00.000Z","updated_at":"2025-03-13T14:24:24.000Z","dependencies_parsed_at":"2024-08-26T03:01:13.321Z","dependency_job_id":"364a4fcf-8148-43a6-9e63-4edb033fc3b6","html_url":"https://github.com/salt-extensions/salt-extension-migrate","commit_stats":null,"previous_names":["salt-extensions/salt-extension-migrate"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salt-extensions%2Fsalt-extension-migrate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salt-extensions%2Fsalt-extension-migrate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salt-extensions%2Fsalt-extension-migrate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salt-extensions%2Fsalt-extension-migrate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/salt-extensions","download_url":"https://codeload.github.com/salt-extensions/salt-extension-migrate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243776672,"owners_count":20346353,"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":[],"created_at":"2024-11-21T15:58:01.749Z","updated_at":"2025-03-15T18:44:54.967Z","avatar_url":"https://github.com/salt-extensions.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Migrate Salt Extensions\n\nA tool that aids in the migration of sets of Salt modules out of Salt core into a Salt extension.\n\nPlease see the [salt-extension-copier docs](https://salt-extensions.github.io/salt-extension-copier/) for details, especially\nthe [extraction guide](https://salt-extensions.github.io/salt-extension-copier/topics/extraction.html).\n\n## Usage\n```console\nusage: saltext-migrate [-h] [-m [MATCH ...]] [-i INCLUDE] [-e EXCLUDE] [-b BASE_BRANCH] [--purge-reset]\n                       [--avoid-collisions] [-d DATA_FILE] [-y]\n                       saltext_name\n\nMigrate modules out of Salt core into an extension.\n\npositional arguments:\n  saltext_name          The name of the Salt extension to create (without `saltext` prefix!). Example: vault\n\noptions:\n  -h, --help            show this help message and exit\n  -m [MATCH ...], --match [MATCH ...]\n                        Instead of using the Salt extension name for finding paths, use this string. Can be specified\n                        multiple times\n  -i INCLUDE, --include INCLUDE\n                        Include these path globs in the migration. Can be specified multiple times.\n  -e EXCLUDE, --exclude EXCLUDE\n                        Exclude these path globs in the migration. Can be specified multiple times.\n  -b BASE_BRANCH, --base-branch BASE_BRANCH\n                        The Salt core branch the modules should be extracted from. Usually, the modules to migrate have\n                        been removed from `master` already and thus don't receive any updates there. If any fixes are\n                        merged, they end up in the `3006.x` and `3007.x` branches. This allows to specify the branch\n                        the module are extracted from. Defaults to `3007.x`.\n  --purge-reset         When extracting modules from the `master` branch, reset the repository to one commit before the\n                        great module purge. This is necessary when extracting purged (!) modules from the `master`\n                        branch instead of the `3006.x` or `3007.x` ones. Ensure you have a good reason to do so.\n  --avoid-collisions    When renaming paths, avoid collisions. This can be important when both pytests and non-pytests\n                        of the same type were present together at some point in Salt's history. Will result in the\n                        files names being suffixed with _old (non-pytest) and _pytest respectively\n  -d DATA_FILE, --data-file DATA_FILE\n                        A YAML file providing defaults for Copier template questions. Handy when migrating many\n                        modules. For available questions, see https://salt-extensions.github.io/salt-extension-\n                        copier/ref/questions.html\n  -y, --yes             Assume yes on all questions. Makes the migration non-interactive. In case you did not provide a\n                        data-file with custom default answers, you need to update some answers to the Copier template\n                        afterwards (especially author metadata)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalt-extensions%2Fsalt-extension-migrate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsalt-extensions%2Fsalt-extension-migrate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalt-extensions%2Fsalt-extension-migrate/lists"}