import typing


def format_commit_sha(commit: str, repo: typing.Dict[str, typing.Any]) -> str:
    """
    Format a GitHub commit SHA into a Markdown message.
    """
    return f"[{commit[:7]}]({repo['html_url']}/commit/{commit})"