defaults:
  reactionOnReceived: eyes
  reactionOnRelayed: rocket
  reactionOnError: no_entry

commands:
  example:

    response:
      type: in_channel
      render: options
      text: Deployment started!

    # Uncomment the following to open a modal interaction
    # interaction:
    #   view: example1

views:
  example1:
    attachments:
      - actions:
          - type: button
            name: color
            text: Red!
            value: red
          - type: button
            name: color
            text: Blue!
            value: blue
          - type: button
            name: no_value_arg
            text: Danger!
            style: danger

  example2:
    type: modal
    title:
      type: plain_text
      text: Example Command
    submit:
      type: plain_text
      text: Submit
    close:
      type: plain_text
      text: Cancel
    blocks:
      - type: input
        label:
          type: plain_text
          text: Environment
        element:
          action_id: environment
          type: static_select
          placeholder:
            type: plain_text
            text: Select an environment
          options:
            - text:
                type: plain_text
                text: staging
              value: staging
            - text:
                type: plain_text
                text: production
              value: production
      - type: input
        label:
          type: plain_text
          text: Comment
        element:
          action_id: comment
          type: plain_text_input
          multiline: true
