def is_pull_request(issue):
    return bool(issue.get('pull_request', {}).get('html_url', None))
Return True if the given issue is a pull request.
dataset/ETHPy150Open arokem/python-matlab-bridge/tools/gh_api.py/is_pull_request