(pr_payload)
If the PR comes from a fork, we can safely assumed it's from an
    external contributor.
If the PR comes from a fork, we can safely assumed it's from an
    external contributor.
If the PR comes from a fork we can safely assumed it s from an external contributor .
def from_contributor(pr_payload):
    """
    If the PR comes from a fork, we can safely assumed it's from an
    external contributor.
    """
    try:
        return pr_payload.get('head', {}).get('repo', {}).get('fork') is True
    except Exception:
        return False
def from_contributor ( pr_payload ) : try : return pr_payload . get ( 'head' , { } ) . get ( 'repo' , { } ) . get ( 'fork' ) is True except Exception : return False