ragab-technologies/Codeshift Migrate
Automated dependency migration with Codeshift - creates PRs with detailed changelogs and risk assessments
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| codeshift-api-key | Codeshift API key for Tier 2/3 migrations. Not required for Tier 1 (deterministic) migrations. | no | — |
| github-token | GitHub token for creating PRs and branches | yes | ${{ github.token }} |
| libraries | Comma-separated list of libraries to migrate (e.g., "pydantic,fastapi"). Leave empty for all. | no | "" |
| auto-apply | Automatically apply changes if risk is below max-risk-level | no | true |
| create-pr | Create a pull request with the changes | no | true |
| run-tests | Run tests after migration | no | true |
| test-command | Command to run tests | no | pytest |
| max-risk-level | Maximum risk level for auto-apply (low, medium, high) | no | medium |
| base-branch | Base branch for the PR | no | main |
| branch-prefix | Prefix for migration branches | no | codeshift/migration |
| python-version | Python version to use | no | 3.11 |
| tier1-only | Only run Tier 1 (deterministic) migrations - no API key required | no | true |
| working-directory | Working directory for the migration | no | . |
Outputs
| name | description |
|---|---|
| pr-url | URL of the created pull request |
| pr-number | Number of the created pull request |
| migrations-count | Number of migrations performed |
| files-changed | Number of files changed |
| risk-level | Overall risk level of the migration |
| test-passed | Whether tests passed after migration |
| json-report | Path to the JSON report file |