---
chain:
  -
    name: "format_execution_result"
    ref: "chatops.format_execution_result"
    parameters:
      execution_id: "{{execution_id}}"
    publish:
      message: "{{format_execution_result.result.message}}"
      extra: "{{format_execution_result.result.extra}}"
    on-success: "post_message"
  -
    name: "post_message"
    ref: "chatops.post_message"
    parameters:
      user: "{{user}}"
      channel: "{{channel}}"
      whisper: "{{whisper}}"
      message: "{{message}}"
      extra: "{{extra}}"

---
chain:
  -
    name: "format_execution_result"
    ref: "chatops.format_execution_result"
    parameters:
      execution_id: "{{execution_id}}"
    publish:
      message: "{{format_execution_result.result.message}}"
      extra: "{% if 'extra' in format_execution_result.result %}{{format_execution_result.result.extra}}{% endif %}"
    on-success: "post_message"
  -
    name: "post_message"
    ref: "chatops.post_message"
    parameters:
      user: "{{user}}"
      channel: "{{channel}}"
      whisper: "{{whisper}}"
      message: "{{message}}"
      extra: "{{extra}}"

Fix for publishing `extra` in post_message
Fix for publishing `extra` in post_message
