Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Sync changes from upstream repository#703

Merged
hubot merged 1 commit intomasterfromupdate-1422050973
Jan 23, 2015
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletionscontent/v3/gists.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -90,7 +90,7 @@ The keys in the `files` object are the `string` filename, and the value is anoth

### Response

<%= headers 201, :Location =>"https://api.github.com/gists/1" %>
<%= headers 201, :Location =>get_resource(:full_gist)['url'] %>
<%= json :full_gist %>

## Edit a gist
Expand DownExpand Up@@ -181,7 +181,7 @@ The keys in the `files` object are the `string` filename. The value is another `

### Response

<%= headers 201, :Location =>"https://api.github.com/gists/2" %>
<%= headers 201, :Location =>get_resource(:gist)['url'] %>
<%= json(:gist) %>

## List gist forks
Expand Down
3 changes: 1 addition & 2 deletionscontent/v3/gists/comments.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -44,8 +44,7 @@ Name | Type | Description

### Response

<%= headers 201,
:Location => "https://api.github.com/gists/comments/1" %>
<%= headers 201, :Location => get_resource(:gist_comment)['url'] %>
<%= json :gist_comment %>

## Edit a comment
Expand Down
3 changes: 1 addition & 2 deletionscontent/v3/git/blobs.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -36,8 +36,7 @@ read more about the use of media types in the API [here](/v3/media/).

### Response

<%= headers 201,
:Location => "https://api.github.com/repos/octocat/example/git/blobs/3a0f86fb8db8eea7ccbb9a95f325ddbedfb25e15" %>
<%= headers 201, :Location => get_resource(:blob_after_create)['url'] %>
<%= json :blob_after_create %>

## Custom media types
Expand Down
3 changes: 1 addition & 2 deletionscontent/v3/git/commits.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -58,6 +58,5 @@ Name | Type | Description

### Response

<%= headers 201,
:Location => "https://api.github.com/repos/octocat/Hello-World/git/commits/7638417db6d59f3c431d3e1f261cc637155684cd" %>
<%= headers 201, :Location => get_resource(:new_commit)['url'] %>
<%= json :new_commit %>
3 changes: 1 addition & 2 deletionscontent/v3/git/refs.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -59,8 +59,7 @@ Name | Type | Description

### Response

<%= headers 201, \
:Location => "https://api.github.com/repos/octocat/Hello-World/git/refs/heads/featureA" %>
<%= headers 201, :Location => get_resource(:ref)['url'] %>
<%= json :ref %>

## Update a Reference
Expand Down
3 changes: 1 addition & 2 deletionscontent/v3/git/tags.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -62,6 +62,5 @@ Name | Type | Description

### Response

<%= headers 201,
:Location => "https://api.github.com/repos/octocat/Hello-World/git/tags/940bd336248efae0f9ee5bc7b2d5c985887b16ac" %>
<%= headers 201, :Location => get_resource(:gittag)['url'] %>
<%= json :gittag %>
3 changes: 1 addition & 2 deletionscontent/v3/git/trees.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -77,6 +77,5 @@ Name | Type | Description

### Response

<%= headers 201,
:Location => "https://api.github.com/repos/octocat/Hello-World/trees/cd8274d15fa3ae2ab983129fb037999f264ba9a7" %>
<%= headers 201, :Location => get_resource(:tree_new)['url'] %>
<%= json :tree_new %>
4 changes: 1 addition & 3 deletionscontent/v3/issues.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -108,9 +108,7 @@ Name | Type | Description

### Response

<%= headers 201,
:Location =>
'https://api.github.com/repos/user/repo/issues/1' %>
<%= headers 201, :Location => get_resource(:full_issue)['url'] %>
<%= json :full_issue %>

## Edit an issue
Expand Down
8 changes: 3 additions & 5 deletionscontent/v3/issues/comments.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -63,13 +63,11 @@ Name | Type | Description
`body`|`string` | **Required**. The contents of the comment.


<%= json :body => "a new comment" %>
<%= json :body => "Me too" %>

### Response

<%= headers 201,
:Location =>
"https://api.github.com/repos/user/repo/issues/comments/1" %>
<%= headers 201, :Location => get_resource(:issue_comment)['url'] %>
<%= json :issue_comment %>

## Edit a comment
Expand All@@ -83,7 +81,7 @@ Name | Type | Description
`body`|`string` | **Required**. The contents of the comment.


<%= json :body => "String" %>
<%= json :body => "Me too" %>

### Response

Expand Down
8 changes: 3 additions & 5 deletionscontent/v3/issues/labels.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -37,13 +37,11 @@ Name | Type | Description
`color`|`string` |**Required**. A 6 character hex code, without the leading `#`, identifying the color.


<%= json :name => "API", :color => "FFFFFF" %>
<%= json :name => "bug", :color => "f29513" %>

### Response

<%= headers 201,
:Location =>
"https://api.github.com/repos/user/repo/labels/foo" %>
<%= headers 201, :Location => get_resource(:label)['url'] %>
<%= json :label %>

## Update a label
Expand All@@ -58,7 +56,7 @@ Name | Type | Description
`color`|`string` |**Required**. A 6 character hex code, without the leading `#`, identifying the color.


<%= json :name => "API", :color => "FFFFFF" %>
<%= json :name => "bug", :color => "f29513" %>

### Response

Expand Down
25 changes: 11 additions & 14 deletionscontent/v3/issues/milestones.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -13,7 +13,7 @@ title: Issue Milestones | GitHub API

### Parameters

Name | Type | Description
Name | Type | Description
-----|------|--------------
`state`|`string` | The state of the milestone. Either `open`, `closed`, or `all`. Default: `open`
`sort`|`string` | What to sort results by. Either `due_date` or `completeness`. Default: `due_date`
Expand All@@ -40,7 +40,7 @@ Name | Type | Description

### Input

Name | Type | Description
Name | Type | Description
-----|------|---------------
`title`|`string` | **Required**. The title of the milestone.
`state`|`string` | The state of the milestone. Either `open` or `closed`. Default: `open`
Expand All@@ -50,17 +50,15 @@ Name | Type | Description
#### Example

<%= json \
:title => "String",
:state => "open or closed",
:description => "String",
:title => "v1.0",
:state => "open",
:description => "Tracking milestone for version 1.0",
:due_on => "2012-10-09T23:39:01Z"
%>

### Response

<%= headers 201,
:Location =>
"https://api.github.com/repos/user/repo/milestones/1" %>
<%= headers 201, :Location => get_resource(:milestone)['url'] %>
<%= json :milestone %>

## Update a milestone
Expand All@@ -69,7 +67,7 @@ Name | Type | Description

### Input

Name | Type | Description
Name | Type | Description
-----|------|---------------
`title`|`string` | The title of the milestone.
`state`|`string` | The state of the milestone. Either `open` or `closed`. Default: `open`
Expand All@@ -79,10 +77,10 @@ Name | Type | Description
#### Example

<%= json \
:title => "String",
:state => "open or closed",
:description => "String",
:due_on => "Time"
:title => "v1.0",
:state => "open",
:description => "Tracking milestone for version 1.0",
:due_on => "2012-10-09T23:39:01Z"
%>

### Response
Expand All@@ -97,4 +95,3 @@ Name | Type | Description
### Response

<%= headers 204 %>

15 changes: 5 additions & 10 deletionscontent/v3/oauth_authorizations.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -94,8 +94,7 @@ Name | Type | Description

### Response

<%= headers 201, :Location => "https://api.github.com/authorizations/1"
%>
<%= headers 201, :Location => get_resource(:oauth_access)['url'] %>
<%= json(:oauth_access) { |h| h.merge("fingerprint" => "") } %>

## Get-or-create an authorization for a specific app
Expand DownExpand Up@@ -123,14 +122,12 @@ Name | Type | Description

### Response if returning a new token

<%= headers 201, :Location => "https://api.github.com/authorizations/1"
%>
<%= headers 201, :Location => get_resource(:oauth_access)['url'] %>
<%= json(:oauth_access) { |h| h.merge("fingerprint" => "") } %>

### Response if returning an existing token

<%= headers 200, :Location => "https://api.github.com/authorizations/1"
%>
<%= headers 200, :Location => get_resource(:oauth_access)['url'] %>
<%= json(:oauth_access) { |h| h.merge("token" => "", "fingerprint" => "") } %>

## Get-or-create an authorization for a specific app and fingerprint
Expand DownExpand Up@@ -161,14 +158,12 @@ Name | Type | Description

### Response if returning a new token

<%= headers 201, :Location => "https://api.github.com/authorizations/1"
%>
<%= headers 201, :Location => get_resource(:oauth_access)['url'] %>
<%= json :oauth_access %>

### Response if returning an existing token

<%= headers 200, :Location => "https://api.github.com/authorizations/1"
%>
<%= headers 200, :Location => get_resource(:oauth_access)['url'] %>
<%= json(:oauth_access) { |h| h.merge("token" => "") } %>

## Update an existing authorization
Expand Down
3 changes: 1 addition & 2 deletionscontent/v3/orgs/hooks.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -86,8 +86,7 @@ Here's how you can create a hook that posts payloads in JSON format:

### Response

<%= headers 201,
:Location => 'https://api.github.com/orgs/octocat/hooks/1' %>
<%= headers 201, :Location => get_resource(:org_hook)['url'] %>
<%= json :org_hook %>


Expand Down
2 changes: 1 addition & 1 deletioncontent/v3/pulls.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -115,7 +115,7 @@ Name | Type | Description

### Response

<%= headers 201, :Location =>"https://api.github.com/user/repo/pulls/1" %>
<%= headers 201, :Location =>get_resource(:pull)['url'] %>
<%= json :pull %>

## Update a pull request
Expand Down
4 changes: 1 addition & 3 deletionscontent/v3/pulls/comments.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -97,9 +97,7 @@ Name | Type | Description

### Response

<%= headers 201,
:Location =>
"https://api.github.com/repos/octocat/Hello-World/pulls/comments/1" %>
<%= headers 201, :Location => get_resource(:pull_comment)['url'] %>
<%= json :pull_comment %>

## Edit a comment
Expand Down
4 changes: 1 addition & 3 deletionscontent/v3/repos.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -147,9 +147,7 @@ Name | Type | Description

### Response

<%= headers 201,
:Location =>
'https://api.github.com/repos/octocat/Hello-World' %>
<%= headers 201, :Location => get_resource(:repo)['url'] %>
<%= json :repo %>

## Get
Expand Down
2 changes: 1 addition & 1 deletioncontent/v3/repos/comments.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -55,7 +55,7 @@ Name | Type | Description

### Response

<%= headers 201, :Location =>"https://api.github.com/user/repo/comments/1" %>
<%= headers 201, :Location =>get_resource(:commit_comment)['url'] %>
<%= json :commit_comment %>

## Get a single commit comment
Expand Down
12 changes: 3 additions & 9 deletionscontent/v3/repos/deployments.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -151,9 +151,7 @@ chat networks.
:description => "Deploying my sweet branch"
%>

<%= headers 201,
:Location =>
'https://api.github.com/repos/octocat/example/deployments/1' %>
<%= headers 201, :Location => get_resource(:deployment)['url'] %>
<%= json :deployment %>

#### Advanced Example
Expand All@@ -168,9 +166,7 @@ A more advanced example specifying required commit statuses and bypassing auto-m
:required_contexts => ["ci/janky", "security/brakeman"]
%>

<%= headers 201,
:Location =>
'https://api.github.com/repos/octocat/example/deployments/2' %>
<%= headers 201, :Location => get_resource(:deployment)['url'] %>
<%= json :deployment %>

## Update a Deployment
Expand DownExpand Up@@ -222,7 +218,5 @@ Name | Type | Description

### Response

<%= headers 201,
:Location =>
'https://api.github.com/repos/octocat/example/deployments/42/statuses/1' %>
<%= headers 201, :Location => get_resource(:deployment_status)['url'] %>
<%= json :deployment_status %>
3 changes: 1 addition & 2 deletionscontent/v3/repos/hooks.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -70,8 +70,7 @@ Here's how you can create a hook that posts payloads in JSON format:

### Response

<%= headers 201,
:Location => 'https://api.github.com/repos/user/repo/hooks/1' %>
<%= headers 201, :Location => get_resource(:hook)['url'] %>
<%= json :hook %>

## Edit a hook
Expand Down
8 changes: 4 additions & 4 deletionscontent/v3/repos/keys.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -14,7 +14,7 @@ title: Deploy Keys | GitHub API
### Response

<%= headers 200, :pagination => default_pagination_rels %>
<%= json(:public_key) { |h| [h] } %>
<%= json(:deploy_key) { |h| [h] } %>

## Get a deploy key {#get}

Expand All@@ -23,7 +23,7 @@ title: Deploy Keys | GitHub API
### Response

<%= headers 200 %>
<%= json :public_key %>
<%= json :deploy_key %>

## Add a new deploy key {#create}

Expand All@@ -35,8 +35,8 @@ title: Deploy Keys | GitHub API

### Response

<%= headers 201, :Location =>"https://api.github.com/user/repo/keys/1" %>
<%= json :public_key %>
<%= headers 201, :Location =>get_resource(:deploy_key)['url'] %>
<%= json :deploy_key %>

## Edit a deploy key {#edit}

Expand Down
3 changes: 1 addition & 2 deletionscontent/v3/repos/releases.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -71,8 +71,7 @@ Name | Type | Description

### Response

<%= headers 201,
:Location => 'https://api.github.com/repos/octocat/Hello-World/releases/1' %>
<%= headers 201, :Location => get_resource(:created_release)['url'] %>
<%= json(:created_release) %>

## Edit a release
Expand Down
4 changes: 1 addition & 3 deletionscontent/v3/repos/statuses.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -60,9 +60,7 @@ Name | Type | Description

### Response

<%= headers 201,
:Location =>
'https://api.github.com/repos/octocat/example/statuses/1' %>
<%= headers 201, :Location => get_resource(:status)['url'] %>
<%= json :status %>

## List Statuses for a specific Ref
Expand Down
2 changes: 1 addition & 1 deletioncontent/v3/users/keys.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -68,7 +68,7 @@ If your GitHub Enterprise appliance has [LDAP Sync enabled](https://help.github.

### Response

<%= headers 201, :Location =>"https://api.github.com/user/keys/1" %>
<%= headers 201, :Location =>get_resource(:public_key)['url'] %>
<%= json :public_key %>

## Update a public key
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp