Objective
Add JSON schema examples for all safe-outputs configurations including create-issue, create-discussion, add-comment, create-pull-request, and related properties.
Context
Part of discussion #2571 - enhancing the main_workflow_schema.json. This is chunk 4 of 5, focusing on safe output patterns.
Approach
-
Extract create-issue examples:
smoke-claude.md has staged: true and min: 1 configuration
- Other workflows with title-prefix, labels, max properties
-
Extract create-discussion examples:
audit-workflows.md has category: "audits"
copilot-agent-analysis.md has title-prefix, category, max
-
Extract add-comment examples:
dev-hawk.md has max: 1, target: "*"
- Other workflows with comment configurations
-
Extract create-pull-request examples:
- Workflows with title-prefix, labels, draft properties
-
Document staged property usage
-
Document global github-token configuration
Files to Modify
pkg/parser/schemas/main_workflow_schema.json (safe-outputs section)
Example Workflows to Mine
.github/workflows/audit-workflows.md (create-discussion with category)
.github/workflows/copilot-agent-analysis.md (create-discussion with title-prefix, max)
.github/workflows/smoke-claude.md (staged: true, create-issue with min)
.github/workflows/dev-hawk.md (add-comment with max, target)
Acceptance Criteria
AI generated by Plan Command for discussion #2571
Objective
Add JSON schema examples for all
safe-outputsconfigurations including create-issue, create-discussion, add-comment, create-pull-request, and related properties.Context
Part of discussion #2571 - enhancing the main_workflow_schema.json. This is chunk 4 of 5, focusing on safe output patterns.
Approach
Extract create-issue examples:
smoke-claude.mdhasstaged: trueandmin: 1configurationExtract create-discussion examples:
audit-workflows.mdhascategory: "audits"copilot-agent-analysis.mdhas title-prefix, category, maxExtract add-comment examples:
dev-hawk.mdhasmax: 1,target: "*"Extract create-pull-request examples:
Document staged property usage
Document global github-token configuration
Files to Modify
pkg/parser/schemas/main_workflow_schema.json(safe-outputs section)Example Workflows to Mine
.github/workflows/audit-workflows.md(create-discussion with category).github/workflows/copilot-agent-analysis.md(create-discussion with title-prefix, max).github/workflows/smoke-claude.md(staged: true, create-issue with min).github/workflows/dev-hawk.md(add-comment with max, target)Acceptance Criteria
create-issuehas 2-3 examples with various property combinationscreate-discussionhas 2-3 examples showing category, title-prefix, maxadd-commenthas 2 examples with max and target propertiescreate-pull-requesthas 1-2 examples if found in workflowsstagedproperty has examplesgithub-tokenglobal config has examplemake buildRelated to [Schema Consistency] 🔍 Schema Consistency Check - Oct 26, 2025: Schema Completeness Analysis #2571