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

Add download_asset to GitReleaseAsset #2624

Closed
wants to merge 4 commits into from

Conversation

thejcannon
Copy link

This change adds download_asset to GitReleaseAsset to close the gap on missing functionality.

Unfortunately, the current code isn't designed to handle this use-case so some refactoring was necessary. The changes should only be to private methods/attributes. Ideally, the RequestsResponse object was handed around more freely, but I didn't want to break any public-facing APIs.

Fixes #2445

@thejcannon
Copy link
Author

Commits are useful to review independently.

@thejcannon thejcannon force-pushed the jcannon/download_assets branch from 61276b6 to 11978ba Compare July 13, 2023 18:50
@thejcannon
Copy link
Author

On second thought. Meh. pygithub already depends on requests so it's not any harder to use requests.get(asset.browser_download_url).

@thejcannon thejcannon closed this Jul 13, 2023
@thejcannon thejcannon deleted the jcannon/download_assets branch July 13, 2023 19:38
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

Successfully merging this pull request may close these issues.

Download Release Asset?
1 participant