diff --git a/examples/dict_to_schema/README.md b/examples/dict_to_schema/README.md index 847b69f..7882e03 100644 --- a/examples/dict_to_schema/README.md +++ b/examples/dict_to_schema/README.md @@ -2,6 +2,9 @@ This example demonstrates how to automatically convert Python dictionary literals into Pydantic models. The codemod makes this process simple by handling all the tedious manual updates automatically. +> [!NOTE] +> View example transformations created by this codemod on the `modal-labs/modal-client` repository [here](https://www.codegen.sh/codemod/6b5f2dfa-948a-4953-b283-9bd4b8545632/public/diff). + ## How the Conversion Script Works The script (`run.py`) automates the entire conversion process in a few key steps: diff --git a/examples/freezegun_to_timemachine_migration/README.md b/examples/freezegun_to_timemachine_migration/README.md index c1155ec..459589e 100644 --- a/examples/freezegun_to_timemachine_migration/README.md +++ b/examples/freezegun_to_timemachine_migration/README.md @@ -1,4 +1,4 @@ - FreezeGun to TimeMachine Migration Example +# FreezeGun to TimeMachine Migration Example This example demonstrates how to use Codegen to automatically migrate test code from FreezeGun to TimeMachine for time mocking. The migration script makes this process simple by handling all the tedious manual updates automatically. diff --git a/examples/usesuspensequery_to_usesuspensequeries/README.md b/examples/usesuspensequery_to_usesuspensequeries/README.md index 42497a8..0ff7114 100644 --- a/examples/usesuspensequery_to_usesuspensequeries/README.md +++ b/examples/usesuspensequery_to_usesuspensequeries/README.md @@ -2,6 +2,9 @@ This example demonstrates how to use Codegen to automatically convert multiple `useSuspenseQuery` calls to a single `useSuspenseQueries` call in React codebases. The migration script makes this process simple by handling all the tedious manual updates automatically. +> [!NOTE] +> View example transformations created by this codemod on the `deepfence/ThreatMapper` repository [here](codegen.sh/codemod/a433152e-5e8d-4319-8043-19ff2b418869/public/diff). + ## How the Migration Script Works The script automates the entire migration process in a few key steps: diff --git a/examples/usesuspensequery_to_usesuspensequeries/run.py b/examples/usesuspensequery_to_usesuspensequeries/run.py index 09a7e69..020c291 100644 --- a/examples/usesuspensequery_to_usesuspensequeries/run.py +++ b/examples/usesuspensequery_to_usesuspensequeries/run.py @@ -76,6 +76,7 @@ def run(codebase: Codebase): print("\nModification complete:") print(f"Files modified: {files_modified}") print(f"Functions modified: {functions_modified}") + codebase.commit() if __name__ == "__main__":