diff --git a/pkg/parser/schema_location_test.go b/pkg/parser/schema_location_test.go index 38af5c5c851..6399e641968 100644 --- a/pkg/parser/schema_location_test.go +++ b/pkg/parser/schema_location_test.go @@ -166,6 +166,19 @@ func TestValidateMainWorkflowFrontmatterWithSchemaAndLocation(t *testing.T) { filePath: "/test/workflow.md", wantErr: false, }, + { + name: "valid pull_request_target ready_for_review trigger", + frontmatter: map[string]any{ + "on": map[string]any{ + "pull_request_target": map[string]any{ + "types": []any{"ready_for_review"}, + }, + }, + "engine": "claude", + }, + filePath: "/test/workflow.md", + wantErr: false, + }, { name: "invalid workflow frontmatter with location", frontmatter: map[string]any{ diff --git a/pkg/parser/schemas/main_workflow_schema.json b/pkg/parser/schemas/main_workflow_schema.json index 30423670e3d..3c1211b2923 100644 --- a/pkg/parser/schemas/main_workflow_schema.json +++ b/pkg/parser/schemas/main_workflow_schema.json @@ -1410,6 +1410,7 @@ "reopened", "synchronize", "converted_to_draft", + "ready_for_review", "locked", "unlocked", "enqueued",