def github_generic_content(noun, payload, blob):
    action = 'synchronized' if payload['action'] == 'synchronize' else payload['action']

    # issue and pull_request objects have the same fields we're interested in
    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