import typing


def format_event_ping(data: typing.Dict[str, typing.Any]) -> str:
    """
    Format a GitHub ping event into a string.
    """
    resp = f"A webhook of type {data['hook']['type']} has been created for "
    if "repository" in data:
        resp += f"the repository **{data['repository']['name']}**!"
    elif "organization" in data:
        resp += f"the organization **{data['organization']['login']}**!"
    resp += f"\n\n*{data['zen']}*"
    return resp