Get the weekly commit count
Returns the total commit counts for the owner
and total commit counts in all
. all
is everyone combined, including the owner
in the last 52 weeks. If you’d like to get the commit counts for non-owners, you can subtract owner
from all
.
The array order is oldest week (index 0) to most recent week.
Path Parameters
Response
application/json
Response
The array order is oldest week (index 0) to most recent week.
Participation Stats
Path Parameters
Get the hourly commit count for each day
Each array contains the day number, hour number, and number of commits:
0-6
: Sunday - Saturday0-23
: Hour of day- Number of commits
For example, [2, 14, 25]
indicates that there were 25 total commits, during the 2:00pm hour on Tuesdays. All times are based on the time zone of individual commits.
Path Parameters
Response
application/json
Response
For example, [2, 14, 25]
indicates that there were 25 total commits, during the 2:00pm hour on Tuesdays. All times are based on the time zone of individual commits.
Code Frequency Stat
Path Parameters
Create a commit status
Users with push access in a repository can create commit statuses for a given SHA.
Note: there is a limit of 1000 statuses per sha
and context
within a repository. Attempts to create more than 1000 statuses will result in a validation error.
Path Parameters
Body
application/json
Body
The state of the status. Can be one of error
, failure
, pending
, or success
.
Allowed values:errorfailurependingsuccess
The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status.
For example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA:
http://ci.example.com/user/repo/build/sha
A short description of the status.
A string label to differentiate this status from the status of other systems. This field is case-insensitive.
Default:default
Response
201 application/json
Response
Response
Status
The status of a commit.
Simple User
Show Child Parameters
Path Parameters
Body
List repository tags
Query Parameters
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Path Parameters
Response
200 application/json
Response
Response
Tag
Example:v0.1
Show Child Parameters
Example:https://github.com/octocat/Hello-World/zipball/v0.1
Example:https://github.com/octocat/Hello-World/tarball/v0.1
Path Parameters
Query Parameters
Download a repository archive (tar)
Gets a redirect URL to download a tar archive for a repository. If you omit :ref
, the repository’s default branch (usually
master
) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use
the Location
header to make a second GET
request.
Note: For private repositories, these links are temporary and expire after five minutes.
Path Parameters
Response
302
Response
Response