from typing import Dict


def format_commit_message(
        git_web_url: str, commit_hash: str, commit_message: str
) -> Dict:
    """Return formatted commit message as Slack's BlockKit section."""
    return {
        'type': 'section',
        'text': {
            'type': 'mrkdwn',
            'text': '* {:s} | <{:s}/commit/{:s}|{:s}>'.format(
                commit_message, git_web_url, commit_hash, commit_hash[0:6]
            )
        }
    }