Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
release_id parameter
Response
Data related to a release.
The file name of the asset.
Example:Team Environment
State of the release asset.
Allowed values:uploadedopen
Simple User
This endpoint makes use of a Hypermedia relation to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the upload_url
returned in
the response of the Create a release endpoint to upload a release asset.
You need to use an HTTP client which supports SNI to make calls to this endpoint.
Most libraries will set the required Content-Length
header automatically. Use the required Content-Type
header to provide the media type of the asset. For a list of media types, see Media Types. For example:
application/zip
GitHub Enterprise Server expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,
you’ll still need to pass your authentication to be able to upload an asset.
When an upstream failure occurs, you will receive a 502 Bad Gateway
status. This may leave an empty asset with a state of starter
. It can be safely deleted.
Notes:
release_id parameter
The raw file data
Response for successful upload
Data related to a release.
The file name of the asset.
Example:Team Environment
State of the release asset.
Allowed values:uploadedopen
Simple User
Returns a weekly aggregate of the number of additions and deletions pushed to a repository.
Returns a weekly aggregate of the number of additions and deletions pushed to a repository.
Code Frequency Stat
Returns the last year of commit activity grouped by week. The days
array is a group of commits per day, starting on Sunday
.
Response
Commit Activity
Example:[0,3,26,20,39,1,0]
Example:89
Example:1336280400
Returns the total
number of commits authored by the contributor. In addition, the response includes a Weekly Hash (weeks
array) with the following information:
w
- Start of the week, given as a Unix timestamp.a
- Number of additionsd
- Number of deletionsc
- Number of commitsw
- Start of the week, given as a Unix timestamp.a
- Number of additionsd
- Number of deletionsc
- Number of commitsContributor Activity
Simple User
Example:135
Example:[{"w":"1367712000","a":6898,"d":77,"c":10}]