

def github_generic_content(noun, payload, blob):
    action = ('synchronized' if (payload['action'] == 'synchronize') else payload['action'])
    content = ('%s %s [%s %s](%s)' % (payload['sender']['login'], action, noun, blob['number'], blob['html_url']))
    if (payload['action'] in ('opened', 'reopened')):
        content += ('\n\n~~~ quote\n%s\n~~~' % (blob['body'],))
    return content

dataset/ETHPy150Open zulip/zulip/zerver/views/webhooks/github.py github_generic_content/original