def parse_comment(message):
    """ Parses the comment to issue, task or US. """
    return {
        'event': 'commented',
        'type': message["type"],
        'values': {
            'user': message["change"]["user"]["name"],
            'subject': message["data"]["subject"] if "subject" in list(message["data"].keys()) else message["data"]["name"]
        }
    }
dataset/ETHPy150Open zulip/zulip/zerver/views/webhooks/taiga.py/parse_comment/original