Objective
Extend the create-issue safe output to accept issue fields (e.g., custom fields like iteration, single-select, date, etc.) similar to how it currently handles labels.
Context
Issue fields are entering public preview on GitHub. Currently, safe outputs support labels and issue types but not issue fields. This is tracked in #30846.
Approach
- Review the current
create-issue safe output schema in actions/setup/js/ (the safeoutputs action)
- Identify the API/MCP mechanism used for setting fields (see
set_issue_fields in issues_granular.go)
- Add an optional
fields parameter to the create-issue safe output schema (modeled after the labels parameter)
- Implement the field-setting logic after issue creation (similar to how labels are applied post-creation or inline)
- Update schema validation and error handling
Files to Modify
actions/setup/js/ — safe output action source (create-issue handler)
schemas/ — update JSON schema for create-issue if applicable
pkg/workflow/js/safe_outputs_tools.json — update tool definition
Acceptance Criteria
Generated by Plan Command for issue #30846 · ● 3.1M · ◷
Objective
Extend the
create-issuesafe output to accept issue fields (e.g., custom fields like iteration, single-select, date, etc.) similar to how it currently handles labels.Context
Issue fields are entering public preview on GitHub. Currently, safe outputs support labels and issue types but not issue fields. This is tracked in #30846.
Approach
create-issuesafe output schema inactions/setup/js/(thesafeoutputsaction)set_issue_fieldsin issues_granular.go)fieldsparameter to thecreate-issuesafe output schema (modeled after thelabelsparameter)Files to Modify
actions/setup/js/— safe output action source (create-issue handler)schemas/— update JSON schema for create-issue if applicablepkg/workflow/js/safe_outputs_tools.json— update tool definitionAcceptance Criteria
create-issuesafe output accepts an optionalfieldsparameterRelated to Implement Issue Fields Support in Safe Outputs #30846