GitRelease

class github.GitRelease.GitRelease

This class represents GitReleases. The reference can be found here https://developer.github.com/v3/repos/releases

id
Type:integer
body
Type:string
title
Type:string
tag_name
Type:string
target_commitish
Type:string
draft
Type:bool
prerelease
Type:bool
author
Type:github.NamedUser.NamedUser
created_at
Type:datetime.datetime
published_at
Type:datetime.datetime
url
Type:string
upload_url
Type:string
html_url
Type:string
tarball_url
Type:string
zipball_url
Type:string
delete_release()
Calls:DELETE /repos/:owner/:repo/releases/:release_id
Return type:None
update_release(name, message, draft=False, prerelease=False, tag_name=NotSet, target_commitish=NotSet)
Calls:PATCH /repos/:owner/:repo/releases/:release_id
Return type:github.GitRelease.GitRelease
upload_asset(path, label='', content_type=NotSet, name=NotSet)
Calls:POST https://<upload_url>/repos/:owner/:repo/releases/:release_id/assets
Return type:github.GitReleaseAsset.GitReleaseAsset
get_assets()
Calls:GET /repos/:owner/:repo/releases/:release_id/assets
Return type:github.PaginatedList.PaginatedList