def get_recipient()

in ghactions.py [0:0]


def get_recipient(repo):
    if repo in SVN_MIRRORS:
        return SVN_MIRRORS[repo]
    yaml_path = os.path.join(REPO_ROOT, f"{repo}.git", "notifications.yaml")
    if time.time() > 1649016000 and os.path.exists(yaml_path):  # Only active after 3rd of april 2022
        yml = yaml.safe_load(open(yaml_path, "r").read())
        if "jobs" in yml:
            return yml["jobs"]
    elif time.time() < 1649016000:  # Not active after 3rd of april 2022
        try:
            resp = requests.get(f"https://gitbox.apache.org/x1/repos/asf/{repo}.git/notifications.yaml")
            if resp and resp.status_code == 200:
                yml = yaml.safe_load(resp.text)
                if "jobs" in yml:
                    return yml["jobs"]
        except Exception:  # misc breakages, ignore all but fatal exceptions - this isn't an important service.
            pass
    return None