See https://developer.github.com/v3/
Method and Path | Description | ||
---|---|---|---|
GET | /repos/:owner/:repo/git/blobs/:sha | ||
POST | /repos/:owner/:repo/git/blobs |
Method and Path | Description | ||
---|---|---|---|
GET | /repos/:owner/:repo/git/commits/:sha | ||
POST | /repos/:owner/:repo/git/commits |
Method and Path | Description | ||
---|---|---|---|
GET | /repos/:owner/:repo/readme | ||
GET | /repos/:owner/:repo/contents/:path |
Method and Path | Description | ||
---|---|---|---|
GET | /repos/:owner/:repo/hooks | ||
GET | /repos/:owner/:repo/hooks/:id | ||
POST | /repos/:owner/:repo/hooks | ||
DELETE | /repos/:owner/:repo/hooks/:id |
Method and Path | Description | ||
---|---|---|---|
GET | /repos/:owner/:repo/git/refs | ||
GET | /repos/:owner/:repo/git/refs/:ref | ||
POST | /repos/:owner/:repo/git/refs | ||
PUT | /repos/:owner/:repo/git/refs/:ref |
Method and Path | Description | ||
---|---|---|---|
GET | /user/repos | ||
GET | /users/:username/repos | List public repositories for the specified user. |
|
GET | /orgs/:org/repos | List repositories for the specified org. |
Method and Path | Description | ||
---|---|---|---|
GET | /repos/:owner/:repo/tags | ||
GET | /repos/:owner/:repo/tags/:sha | ||
POST | /repos/:owner/:repo/git/tags |
Name | Value | Description |
---|---|---|
file | file |
|
dir | dir |
|
symlink | symlink |
|
submodule | submodule |
|
Name | Value | Description |
---|---|---|
base64 | base64 |
|
utf-8 | utf-8 |
|
Name | Value | Description |
---|---|---|
push | push |
|
pull_request | pull_request |
|
Name | Value | Description |
---|---|---|
blob | blob |
|
tree | tree |
|
commit | commit |
|
Name | Value | Description |
---|---|---|
User | User |
|
Name | Value | Description |
---|---|---|
all | all |
|
public | public |
|
private | private |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
content | string | Yes | - |
|
encoding | encoding | Yes | - |
|
url | string | Yes | - |
|
sha | string | Yes | - |
|
size | long | Yes | - |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
url | string | Yes | - |
|
sha | string | Yes | - |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
content | string | Yes | - |
|
encoding | encoding | Yes | utf-8 |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
sha | string | Yes | - |
Example: c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc |
url | string | Yes | - |
Example: https://api.github.com/repos/octocat/Hello-World/commits/c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc |
html_url | string | Yes | - |
|
author | person | Yes | - |
|
committer | person | Yes | - |
|
tree | tree_summary | Yes | - |
|
message | string | Yes | - |
|
parents | [commit_summary] | Yes | - |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
message | string | Yes | - |
|
tree | string | Yes | - |
|
parents | [string] | Yes | - |
|
author | person | Yes | - |
|
committer | person | Yes | - |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
sha | string | Yes | - |
|
url | string | Yes | - |
|
author | person | Yes | - |
|
committer | person | Yes | - |
|
message | string | Yes | - |
|
tree | tree_summary | Yes | - |
|
parents | [tree_summary] | Yes | - |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
sha | string | Yes | - |
Example: c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc |
url | string | Yes | - |
Example: https://api.github.com/repos/octocat/Hello-World/commits/c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc |
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
type | contents_type | Yes | - |
|
encoding | encoding | Yes | - |
|
size | long | Yes | - |
|
name | string | Yes | - |
|
path | string | Yes | - |
|
content | string | No | - | If file, then present
|
sha | string | Yes | - |
|
url | string | Yes | - |
|
git_url | string | Yes | - |
|
html_url | string | Yes | - |
|
download_url | string | Yes | - |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
base_tree | string | Yes | - |
|
tree | [tree_form] | Yes | - |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
sha | string | Yes | - |
|
url | string | Yes | - |
|
tree_result | tree | Yes | - |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
resource | string | Yes | - |
Example: Issue |
field | string | Yes | - |
Example: title |
code | string | Yes | - |
Example: missing_field |
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
type | string | Yes | - |
Example: commit |
sha | string | Yes | - |
|
url | string | Yes | - |
|
Interfaces: None
See https://developer.github.com/v3/repos/hooks/#create-a-hook
Field | Type | Required? | Default | Description |
---|---|---|---|---|
id | long | Yes | - |
|
url | string | Yes | - |
|
test_url | string | Yes | - |
|
ping_url | string | Yes | - |
|
name | string | Yes | - |
|
events | [hook_event] | Yes | - |
|
active | boolean | Yes | - |
|
config | hook_config | Yes | - |
|
updated_at | date-time-iso8601 | Yes | - |
|
created_at | date-time-iso8601 | Yes | - |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
url | string | No | - |
|
content_type | string | No | - |
Example: json or form |
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
path | string | Yes | - |
|
mode | string | Yes | - | 100644 file (blob), 100755 executable (blob), 040000 subdirectory (tree), 160000 submodule (commit)
|
type | node_type | Yes | - |
|
size | long | Yes | - |
|
sha | string | Yes | - |
|
url | string | Yes | - |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
path | string | Yes | - |
|
mode | string | Yes | - | 100644 file (blob), 100755 executable (blob), 040000 subdirectory (tree), 160000 submodule (commit)
|
type | node_type | Yes | - |
|
sha | string | Yes | - |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
name | string | Yes | - |
|
string | Yes | - |
|
|
date | date-time-iso8601 | Yes | - |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
id | string | Yes | - |
|
url | string | Yes | - |
|
number | string | Yes | - |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
title | string | Yes | - |
|
head | string | Yes | - |
|
base | string | Yes | - |
|
body | string | No | - |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
ref | string | Yes | - |
Example: refs/heads/featureA or refs/heads/master |
url | string | Yes | - |
|
object | github_object | Yes | - |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
ref | string | Yes | - |
Example: refs/heads/featureA or refs/heads/master |
sha | string | Yes | - |
Example: 940bd336248efae0f9ee5bc7b2d5c985887b16ac |
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
sha | string | Yes | - |
Example: 940bd336248efae0f9ee5bc7b2d5c985887b16ac |
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
id | long | Yes | - |
|
owner | user | Yes | - |
|
name | string | Yes | - |
|
full_name | string | Yes | - |
|
private | boolean | Yes | - |
|
description | string | No | - |
|
url | string | Yes | - |
|
html_url | string | Yes | - |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
tag | string | Yes | - |
Example: v0.0.1 |
sha | string | Yes | - |
Example: 940bd336248efae0f9ee5bc7b2d5c985887b16ac |
url | string | Yes | - |
Example: https://api.github.com/repos/octocat/Hello-World/git/tags/940bd336248efae0f9ee5bc7b2d5c985887b16ac |
message | string | Yes | - |
Example: initial version |
tagger | tagger | Yes | - |
|
object | github_object | Yes | - |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
tag | string | Yes | - |
Example: v0.0.1 |
message | string | Yes | - |
|
object | string | Yes | - | The SHA of the git object this is tagging
Example: 940bd336248efae0f9ee5bc7b2d5c985887b16ac |
type | string | Yes | commit |
|
tagger | tagger | Yes | - |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
name | string | Yes | - |
Example: v0.1 |
commit | commit_summary | Yes | - |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
name | string | Yes | - |
|
string | Yes | - |
|
|
date | date-time-iso8601 | Yes | - |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
sha | string | Yes | - |
|
url | string | Yes | - |
|
truncated | boolean | Yes | - |
|
tree | [node] | Yes | - |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
path | string | Yes | - |
|
mode | string | Yes | - | 100644 file (blob), 100755 executable (blob), 040000 subdirectory (tree), 160000 submodule (commit)
|
type | node_type | Yes | - |
|
sha | string | No | - |
|
content | string | No | - |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
path | string | Yes | - |
|
mode | string | Yes | - | 100644 file (blob), 100755 executable (blob), 040000 subdirectory (tree), 160000 submodule (commit)
|
type | node_type | Yes | - |
|
size | long | Yes | - |
|
sha | string | Yes | - |
|
url | string | Yes | - |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
url | string | Yes | - |
|
sha | string | Yes | - |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
message | string | Yes | - |
Example: Validation Failed |
errors | [error] | No | - |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
id | long | Yes | - |
|
login | string | Yes | - |
|
name | string | No | - |
|
string | No | - |
|
|
avatar_url | string | No | - |
|
gravatar_id | string | No | - |
|
url | string | Yes | - |
|
html_url | string | Yes | - |
|
type | owner_type | Yes | - |
|
Interfaces: None
Field | Type | Required? | Default | Description |
---|---|---|---|---|
string | Yes | - |
|
|
verified | boolean | Yes | - |
|
primary | boolean | Yes | - |
|