MCPcopy Create free account
hub / github.com/github/gh-aw / getDeleteSchemaFileCodemod

Function getDeleteSchemaFileCodemod

pkg/cli/codemod_schema_file.go:4–16  ·  view source on GitHub ↗

getDeleteSchemaFileCodemod creates a codemod for deleting deprecated schema files

()

Source from the content-addressed store, hash-verified

2
3// getDeleteSchemaFileCodemod creates a codemod for deleting deprecated schema files
4func 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}

Calls

no outgoing calls