Objective
Propose and implement a new set-issue-field safe output tool that provides granular control over individual issue fields, analogous to set-issue-type.
Context
The existing set-issue-type safe output provides a focused way to set a single field (type) on an issue. A similar set-issue-field tool would let workflows set a specific field by name and value without going through update-issue. Tracked in #30846.
Approach
- Design the
set-issue-field interface:
- Parameters:
issue_number, field_name, value (and optionally field_node_id to skip discovery)
- Implement the tool in
actions/setup/js/ following the pattern of set-issue-type
- Register the tool in
pkg/workflow/js/safe_outputs_tools.json
- Add schema validation
- Handle unknown field names and invalid values with actionable errors
Files to Modify
actions/setup/js/ — add new set-issue-field handler
pkg/workflow/js/safe_outputs_tools.json — register new tool
schemas/ — JSON schema for new tool
Acceptance Criteria
Generated by Plan Command for issue #30846 · ● 3.1M · ◷
Objective
Propose and implement a new
set-issue-fieldsafe output tool that provides granular control over individual issue fields, analogous toset-issue-type.Context
The existing
set-issue-typesafe output provides a focused way to set a single field (type) on an issue. A similarset-issue-fieldtool would let workflows set a specific field by name and value without going throughupdate-issue. Tracked in #30846.Approach
set-issue-fieldinterface:issue_number,field_name,value(and optionallyfield_node_idto skip discovery)actions/setup/js/following the pattern ofset-issue-typepkg/workflow/js/safe_outputs_tools.jsonFiles to Modify
actions/setup/js/— add new set-issue-field handlerpkg/workflow/js/safe_outputs_tools.json— register new toolschemas/— JSON schema for new toolAcceptance Criteria
set-issue-fieldsafe output acceptsissue_number,field_name, andvalueRelated to Implement Issue Fields Support in Safe Outputs #30846