Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try fixing #350 #356

Merged
merged 3 commits into from
Sep 23, 2024
Merged

Commits on Sep 23, 2024

  1. Try fixing JuliaRegistries#350

    !!! This is untested!
    
    This is according to PyGithub/PyGithub#2345 (comment)
    
    Locally I tested that the following works correctly:
    
    ```python
    In [24]: from github import Github, Auth
    
    In [25]: auth = Auth.Token(token)
    
    In [26]: g = Github(auth=auth)
    
    In [27]: repo = g.get_repo("JuliaRegistries/General")
    
    In [28]: registry_toml = repo.get_contents("Registry.toml")
    
    In [39]: blob = repo.get_git_blob(registry_toml.sha)
    
    In [40]: b64 = base64.b64decode(blob.content)
    
    In [41]: b64.decode("utf8")
    ```
    simeonschaub authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    d5f0679 View commit details
    Browse the repository at this point in the history
  2. Update test_repo.py

    simeonschaub authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    e605eab View commit details
    Browse the repository at this point in the history
  3. fix formatting

    simeonschaub committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    ef02f42 View commit details
    Browse the repository at this point in the history