def METHOD_NAME(org_cfg: model.concourse.GithubOrganisationConfig):
    if org and org_cfg.org_name() != org:
        return False
    gh_cfg: model.github.GithubConfig = cfg_factory.github(org_cfg.github_cfg_name())
    if host and gh_cfg.hostname() != host:
        return False
    return True