Objective
Investigate and implement issue fields support in the update-issue safe output, similar to how labels can be added/removed.
Context
The create-issue safe output is being updated to support fields (see companion issue). The update-issue safe output should also allow setting or updating issue fields. Tracked in #30846.
Approach
- Review the current
update-issue safe output schema and implementation in actions/setup/js/
- Determine the correct semantics: should updating fields be a replace (set) or merge (add/remove) operation?
- Add an optional
fields parameter to update-issue mirroring the create-issue approach
- Implement field-update logic using the GitHub API (reference
set_issue_fields in issues_granular.go)
- Handle partial updates gracefully (only provided fields are modified)
Files to Modify
actions/setup/js/ — safe output action source (update-issue handler)
pkg/workflow/js/safe_outputs_tools.json — update tool definition
schemas/ — JSON schema updates if applicable
Acceptance Criteria
Generated by Plan Command for issue #30846 · ● 3.1M · ◷
Objective
Investigate and implement issue fields support in the
update-issuesafe output, similar to how labels can be added/removed.Context
The
create-issuesafe output is being updated to support fields (see companion issue). Theupdate-issuesafe output should also allow setting or updating issue fields. Tracked in #30846.Approach
update-issuesafe output schema and implementation inactions/setup/js/fieldsparameter toupdate-issuemirroring thecreate-issueapproachset_issue_fieldsin issues_granular.go)Files to Modify
actions/setup/js/— safe output action source (update-issue handler)pkg/workflow/js/safe_outputs_tools.json— update tool definitionschemas/— JSON schema updates if applicableAcceptance Criteria
update-issuesafe output accepts an optionalfieldsparameterRelated to Implement Issue Fields Support in Safe Outputs #30846