{%- set git = ctx.deployment['meta-info'].git or {} %}
{
  "username": "Deployer ({{ctx.cluster}}-{{ctx.operation}})",
  "channel": "{{ notification.channel or '#totem' }}",
  "text": " ",

  "attachments": [
      {
          "text": "{{ notification.code}}: {{ notification.message | truncate(1000) }}",
          "color":
              {% if level == 1 %}
                "danger"
              {% elif level == 2 %}
                "warning"
              {% elif level == 3 %}
                "good"
              {% else %}
                "#439FE0"
              {% endif %},
          "footer":
              {% if ctx.github %}
                "<https://github.com/{{git.owner}}|{{git.owner or 'NA'}}> / <https://github.com/{{git.owner}}/{{git.repo}}|{{git.repo or 'NA'}}> / <https://github.com/{{git.owner}}/{{git.repo}}/tree/{{git.ref}}|{{git.ref or 'NA'}}> / <https://github.com/{{git.owner}}/{{git.repo}}/commits/{{git.commit or git.ref}}|{{(git.commit or git.ref or 'NA')[0:7]}}>\n"
              {% else %}
                "{{git.owner or 'NA'}}/{{git.repo or 'NA'}}/{{git.ref or 'NA'}}/{{(git.commit or 'NA')[0:7]}}"
              {% endif %},
          "ts": "{{ notification.date }}"
      }
  ]

}
{%- set git = ctx.deployment['meta-info'].git or {} %}
{
  "username": "Deployer ({{ctx.cluster}}-{{ctx.operation}})",
  "channel": "{{ notification.channel or '#totem' }}",
  "text": " ",

  "attachments": [
      {
          "text": "{% if notification.code %}{{ notification.code}}: {% endif %}{{ notification.message | truncate(1000) }}",
          "color":
              {% if level == 1 %}
                "danger"
              {% elif level == 2 %}
                "warning"
              {% elif level == 3 %}
                "good"
              {% else %}
                "#439FE0"
              {% endif %},
          "footer":
              {% if git.type == 'github' %}
                "<https://github.com/{{git.owner}}|{{git.owner or 'NA'}}> / <https://github.com/{{git.owner}}/{{git.repo}}|{{git.repo or 'NA'}}> / <https://github.com/{{git.owner}}/{{git.repo}}/tree/{{git.ref}}|{{git.ref or 'NA'}}> / <https://github.com/{{git.owner}}/{{git.repo}}/commits/{{git.commit or git.ref}}|{{(git.commit or git.ref or 'NA')[0:7]}}>\n"
              {% else %}
                "{{git.owner or 'NA'}}/{{git.repo or 'NA'}}/{{git.ref or 'NA'}}/{{(git.commit or 'NA')[0:7]}}"
              {% endif %},
          "ts": "{{ notification.date }}"
      }
  ]

}
Fix colon issue Fix github link
Fix colon issue
Fix github link
