Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 12, 2026

The update-issue safe-output only supported key-presence semantics (body: enables updates). This adds explicit boolean control: body: true enables, body: false disables.

Changes

Schema & Parser

  • JSON schema accepts type: ["boolean", "null"] for body field
  • Parser switched from FieldParsingKeyExistence to FieldParsingBoolValue mode
  • Config generation uses AddBoolPtrOrDefault with true default

Handler Validation

  • JavaScript handler checks config.allow_body before processing body updates
  • Logs warning when body update is attempted but blocked
  • Other fields (title, status, labels) remain updatable regardless of body setting

Behavior

safe-outputs:
  update-issue:
    body: true    # Explicit enable
    body: false   # Explicit disable (blocks updates, logs warning)
    body:         # Null value → true (backward compat)
    # omitted     # Missing → true (default)

Backward Compatibility

Existing workflows unchanged:

  • body: (null) → allow_body: true (maintained key-existence semantics)
  • Missing field → allow_body: true (safe default)
Original prompt

Add support for safe-outputs.body: true as a way to allow updating the issue body. Update JSON schema and parser.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@github-actions
Copy link
Contributor

🔍 PR Triage Results

Category: feature | Risk: medium | Priority: 32/100

Scores Breakdown

  • Impact: 25/50 - New feature for safe-outputs body update functionality, medium impact on workflow capabilities
  • Urgency: 2/30 - WIP status, very new (< 1 hour old), no blocking issues or priority labels
  • Quality: 5/20 - CI pending, WIP status indicates incomplete implementation

📋 Recommended Action: defer

Explanation: This WIP PR needs completion before review. The feature adds body update support to safe-outputs which is valuable, but should be revisited when the [WIP] tag is removed and CI validation passes.

Next Steps:

  1. Complete implementation and remove [WIP] tag
  2. Ensure CI passes
  3. Request review

Triaged by PR Triage Agent on 2026-02-12

AI generated by PR Triage Agent

Copilot AI changed the title [WIP] Add support for safe-outputs.body to update issue body Add boolean value support for safe-outputs.body configuration Feb 12, 2026
Copilot AI requested a review from pelikhan February 12, 2026 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants