INNER CODE UNIT · Python

read_excluded_authors

fluxerapp/flutter_client · .github/scripts/append_release_direct_commits.py:60

def read_excluded_authors() -> frozenset[str]:
    raw_value = os.environ.get("EXCLUDE_CONTRIBUTORS", "").strip()
    if raw_value == "":
        return DEFAULT_EXCLUDED_AUTHORS
    extra_authors = {author.strip() for author in raw_value.split(",") if author.strip() != ""}
    return DEFAULT_EXCLUDED_AUTHORS | extra_authors


def run_gh_json(args: list[str]) -> object:
    completed = subprocess.run(
        ["gh", *args],
        check=True,
        text=True,
        capture_output=True,
    )
    return json.loads(completed.stdout)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…