8000 Merge pull request #570 from DonnchaC/release-browser-download-url · pythonthings/github3.py@38de787 · GitHub
[go: up one dir, main page]

Skip to content

Commit 38de787

Browse files
Merge pull request sigmavirus24#570 from DonnchaC/release-browser-download-url
Include browser_download_url attribute with Asset object
2 parents 5477506 + 717fe78 commit 38de787

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

github3/repos/release.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ def _update_attributes(self, asset):
195195
#: URL to download the asset.
196196
#: Request headers must include ``Accept: application/octet-stream``.
197197
self.download_url = self._api
198+
# User friendly download URL
199+
self.browser_download_url = asset.get('browser_download_url')
198200
#: GitHub id of the asset
199201
self.id = asset.get('id')
200202
#: Short description of the asset

0 commit comments

Comments
 (0)
0