INNER CODE UNIT · Python

main

Steam-Headless/docker-steam-headless · .github/scripts/manage-compatibility-report.py:449

def main():
    token = os.environ.get("GITHUB_TOKEN")
    owner = os.environ.get("REPO_OWNER")
    repo = os.environ.get("REPO_NAME")
    issue_number_str = os.environ.get("ISSUE_NUMBER")
    event_name = os.environ.get("EVENT_NAME", "issues")
    action_name = os.environ.get("ACTION_NAME", "")

    if not (token and owner and repo and issue_number_str):
        print(
            "Missing required environment variables: GITHUB_TOKEN, REPO_OWNER, REPO_NAME, ISSUE_NUMBER", file=sys.stderr
        )
        sys.exit(1)

    issue_number = int(issue_number_str)
    repo_root = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", ".."))

    if event_name == "issue_comment" and action_name == "created":

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…