getDeleteSchemaFileCodemod creates a codemod for deleting deprecated schema files
()
| 2 | |
| 3 | // getDeleteSchemaFileCodemod creates a codemod for deleting deprecated schema files |
| 4 | func getDeleteSchemaFileCodemod() Codemod { |
| 5 | return Codemod{ |
| 6 | ID: "delete-schema-file", |
| 7 | Name: "Delete deprecated schema file", |
| 8 | Description: "Deletes .github/aw/schemas/agentic-workflow.json which is no longer written by init command", |
| 9 | IntroducedIn: "0.6.0", |
| 10 | Apply: func(content string, frontmatter map[string]any) (string, bool, error) { |
| 11 | // This codemod is handled by the fix command itself (see runFixCommand) |
| 12 | // It doesn't modify workflow files, so we just return content unchanged |
| 13 | return content, false, nil |
| 14 | }, |
| 15 | } |
| 16 | } |
no outgoing calls