Skip to content

Feat: Slack Payload Tweaks #199

@AaronMT

Description

@AaronMT

Block-kit Builder: link
Current payload example:

Image
{
    "attachments": [
        {
            "color": "${{ env.JOB_STATUS_COLOR }}",
            "blocks": [
                {
                    "type": "header",
                    "text": {
                        "type": "plain_text",
                        "text": ":looker: Looker Github Action :github: - ${{ env.WORKFLOW_NAME }}",
                        "emoji": true
                    }
                },
                {
                    "type": "divider"
                },
                {
                    "type": "section",
                    "text": {
                        "type": "mrkdwn",
                        "text": "Status: ${{ env.JOB_STATUS }}\n Logs: <${{ env.JOB_LOG_URL }}|Build Logs>\n Branch: ${{ env.BRANCH }}"
                    }
                },
                {
                    "type": "divider"
                },
                {
                    "type": "context",
                    "elements": [
                        {
                            "type": "mrkdwn",
                            "text": ":testops-notify: created by <https://mozilla-hub.atlassian.net/wiki/spaces/MTE/overview#Test-Operations|Mobile Test Engineering>"
                        }
                    ]
                }
            ]
        }
    ]
}

@rpappalax's initial suggestion:

Image

PROD comes from the workflow names, so they can be renamed no problem

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions