def is_pull_request()

in webhook-app/github_helper.py [0:0]


def is_pull_request(data):
    """Checks if the hook event data is for a pull request."""
    return data.get('issue', {}).get('pull_request') is not None