The name of the commit/branch/tag. Default: the repository’s default branch (usually master
)
Get a repository README for a directory
Gets the README from a repository directory.
READMEs support custom media types for retrieving the raw content or rendered HTML.
Query Parameters
Path Parameters
The alternate path to look for a README file
Response
application/json
Response
Response
Content File
Content File
Show Child Parameters
Example:"actual/actual.md"
Example:"git://example.com/defunkt/dotjs.git"
Path Parameters
Query Parameters
List releases
This returns a list of releases, which does not include regular Git tags that have not been associated with a release. To get a list of Git tags, use the Repository Tags API.
Information about published releases are available to everyone. Only users with push access will receive listings for draft releases.
Query Parameters
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Path Parameters
Response
application/json
Response
Response
A release.
The name of the tag.
Example:v1.0.0
Specifies the commitish value that determines where the Git tag is created from.
Example:master
true to create a draft (unpublished) release, false to create a published one.
Example:false
Whether to identify the release as a prerelease or a full release.
Example:false
Simple User
Show Child Parameters
Data related to a release.
Show Child Parameters
Show Child Parameters
Path Parameters
Query Parameters
Create a release
Users with push access to the repository can create a release.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See “Secondary rate limits” and “Dealing with secondary rate limits” for details.
Path Parameters
Body
application/json
Body
The name of the tag.
Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository’s default branch (usually master
).
The name of the release.
Text describing the contents of the tag.
true
to create a draft (unpublished) release, false
to create a published one.
Default:false
true
to identify the release as a prerelease. false
to identify the release as a full release.
Default:false
Response
application/json
Response
Response
Release
A release.
The name of the tag.
Example:v1.0.0
Specifies the commitish value that determines where the Git tag is created from.
Example:master
true to create a draft (unpublished) release, false to create a published one.
Example:false
Whether to identify the release as a prerelease or a full release.
Example:false
Simple User
Show Child Parameters
Data related to a release.
Show Child Parameters
Show Child Parameters
Path Parameters
Body
Get a release asset
To download the asset’s binary content, set the Accept
header of the request to application/octet-stream
. The API will either redirect the client to the location, or stream it directly if possible. API clients should handle both a 200
or 302
response.
Path Parameters
asset_id parameter
Response
application/json
Response
To download the asset’s binary content, set the Accept
header of the request to application/octet-stream
. The API will either redirect the client to the location, or stream it directly if possible. API clients should handle both a 200
or 302
response.
Release Asset
Data related to a release.
The file name of the asset.
Example:Team Environment
State of the release asset.
Allowed values:uploadedopen
Simple User
Show Child Parameters
Path Parameters
Update a release asset
Users with push access to the repository can edit a release asset.
Path Parameters
asset_id parameter
Body
application/json
Body
The file name of the asset.
An alternate short description of the asset. Used in place of the filename.
Example:"uploaded"
Response
200 application/json
Response
Response
Release Asset
Data related to a release.
The file name of the asset.
Example:Team Environment
State of the release asset.
Allowed values:uploadedopen
Simple User