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#563

Merged
hubot merged 1 commit intomasterfromupdate-1406574145
Jul 28, 2014
Merged
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
28 changes: 14 additions & 14 deletionscontent/v3/repos/contents.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -20,7 +20,7 @@ READMEs support [a custom media type](#custom-media-types) for getting the raw c

### Parameters

Name | Type | Description
Name | Type | Description
-----|------|--------------
`ref`|`string` | The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)

Expand All@@ -45,7 +45,7 @@ Directories and submodules do _not_ support custom media types.

### Parameters

Name | Type | Description
Name | Type | Description
-----|------|--------------
`path`|`string` | The content path.
`ref`|`string` | The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)
Expand DownExpand Up@@ -92,7 +92,7 @@ This method creates a new file in a repository

### Parameters

Name | Type | Description
Name | Type | Description
-----|------|-------------
`path`|`string` | **Required**. The content path.
`message`|`string` | **Required**. The commit message.
Expand All@@ -110,11 +110,11 @@ information if omitted. If the `committer` information is omitted, the authentic
user's information is used.

You must provide values for both `name` and `email`, whether you choose to use
`author` or `committer`. Otherwise, you'll receive a `500` status code.
`author` or `committer`. Otherwise, you'll receive a `422` status code.

Both the `author` and `commiter` parameters have the same keys:

Name | Type | Description
Name | Type | Description
-----|------|--------------
`name`|`string` | The name of the author (or commiter) of the commit
`email`|`string` | The email of the author (or commiter) of the commit
Expand All@@ -139,12 +139,12 @@ This method updates a file in a repository

### Parameters

Name | Type | Description
Name | Type | Description
-----|------|--------------
`path`|`string` | **Required**. The content path.
`message`|`string` | **Required**. The commit message.
`content`|`string` | **Required**. The updated file content, Base64 encoded.
`sha` | `string` | **Required**. The blob SHA of the file being replaced.
`sha` | `string` | **Required**. The blob SHA of the file being replaced.
`branch` | `string` | The branch name. Default: the repository’s default branch (usually `master`)

### Optional Parameters
Expand All@@ -158,11 +158,11 @@ information if omitted. If the `committer` information is omitted, the authentic
user's information is used.

You must provide values for both `name` and `email`, whether you choose to use
`author` or `committer`. Otherwise, you'll receive a `500` status code.
`author` or `committer`. Otherwise, you'll receive a `422` status code.

Both the `author` and `commiter` parameters have the same keys:

Name | Type | Description
Name | Type | Description
-----|------|--------------
`name`|`string` | The name of the author (or commiter) of the commit
`email`|`string` | The email of the author (or commiter) of the commit
Expand All@@ -189,11 +189,11 @@ This method deletes a file in a repository
### Parameters


Name | Type | Description
Name | Type | Description
-----|------|--------------
`path`|`string` | **Required**. The content path.
`message`|`string` | **Required**. The commit message.
`sha` | `string` | **Required**. The blob SHA of the file being replaced.
`sha` | `string` | **Required**. The blob SHA of the file being replaced.
`branch` | `string` | The branch name. Default: the repository’s default branch (usually `master`)

### Optional Parameters
Expand All@@ -207,11 +207,11 @@ information if omitted. If the `committer` information is omitted, the authentic
user's information is used.

You must provide values for both `name` and `email`, whether you choose to use
`author` or `committer`. Otherwise, you'll receive a `500` status code.
`author` or `committer`. Otherwise, you'll receive a `422` status code.

Both the `author` and `commiter` parameters have the same keys:

Name | Type | Description
Name | Type | Description
-----|------|--------------
`name`|`string` | The name of the author (or commiter) of the commit
`email`|`string` | The email of the author (or commiter) of the commit
Expand DownExpand Up@@ -246,7 +246,7 @@ to make a second `GET` request.

### Parameters

Name | Type | Description
Name | Type | Description
-----|------|--------------
`archive_format`|`string` | Can be either `tarball` or `zipball`. Default: `tarball`
`ref`| `string` | A valid Git reference. Default: the repository’s default branch (usually `master`)
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp