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

repo.get_contents( ) with tag/release parameter #2252

Open
hehoffmann opened this issue Jun 9, 2022 · 0 comments
Open

repo.get_contents( ) with tag/release parameter #2252

hehoffmann opened this issue Jun 9, 2022 · 0 comments

Comments

@hehoffmann
Copy link

I'm not sure if there is an existing solution and I can't find it, but I would like to load files from an old version of a particular repo. Currently I can only load the latest version of the file from master. So another parameter in repo.get_contents( ) for a version tag would be great.

For example, I would like to load the license file of version v1.53 (https://github.com/PyGithub/PyGithub/blob/v1.53/COPYING) instead of the one from the master (https://github.com/PyGithub/PyGithub/blob/master/COPYING).
repo.get_contents(path="COPYING", tag="v1.53")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant