INNER CODE UNIT · Python

get_github_token

timschneeb/awesome-shizuku · scripts/check_links.py:7

def get_github_token():
    """Gets the GitHub token from the environment variables."""
    return os.environ.get("GITHUB_TOKEN")

def extract_repo_details(text):
    """Extracts unique GitHub repository paths and their declared licenses from a given text."""
    repo_details = {}
    
    # Regex for GitHub repo paths
    repo_pattern = r"https://github\.com/([\w.-]+/[\w.-]+)"
    # Regex for tags in backticks
    tag_pattern = r"`([^`]+)`"

    non_repo_paths = {
        'sindresorhus/awesome', 
        'timschneeb/changelog-awesome-shizuku',
        'RikkaApps/Shizuku-API', 
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…