8000 Add Release.assets attribute by bgilbert · Pull Request #235 · sigmavirus24/github3.py · GitHub
[go: up one dir, main page]

Skip to content

Add Release.assets attribute #235

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

Merged
merged 2 commits into from
May 3, 2014
Merged

Add Release.assets attribute #235

merged 2 commits into from
May 3, 2014

Conversation

bgilbert
Copy link
Contributor
@bgilbert bgilbert commented May 2, 2014

The JSON describing a release includes complete information on its assets. Add Release.assets attribute with a list of Assets. This is cheaper for the application than making a separate request via Release.iter_assets().

Leave Release.iter_assets() in place, in case someone has a use for it, but mention Release.assets in its documentation.

The JSON describing a release includes complete information on its
assets.  Add Release.assets attribute with a list of Assets.  This is
cheaper for the application than making a separate request via
Release.iter_assets().

Leave Release.iter_assets() in place, in case someone has a use for it,
but mention Release.assets in its documentation.
@@ -104,7 +106,9 @@ def edit(self, tag_name=None, target_commitish=None, name=None, body=None,
return successful

def iter_assets(self, number=-1, etag=None):
"""Iterate over the assets available for this release.
"""Iterate over the assets available for this release. The same
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's revert the change to this doc-string. The same dynamic is present on Gists with a files and iter_files pair.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

sigmavirus24 added a commit that referenced this pull request May 3, 2014
@sigmavirus24 sigmavirus24 merged commit e81ef91 into sigmavirus24:develop May 3, 2014
@sigmavirus24
Copy link
Owner

Thanks @bgilbert

@bgilbert bgilbert deleted the release-assets-attr branch May 4, 2014 19:26
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.

2 participants
0