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.

Commitcd5439a

Browse files
committed
Add notes aboutprotection key in branch payloads
1 parent883db7a commitcd5439a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

‎content/v3/repos.md‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ Name | Type | Description
273273

274274
application/vnd.github.loki-preview+json
275275

276+
The`protection` key will only be present in branch payloads if this header is passed.
277+
276278
{{/tip}}
277279

278280
###Response
@@ -286,6 +288,22 @@ Name | Type | Description
286288

287289
###Response
288290

291+
{{#tip}}
292+
293+
<aname="preview-period"></a>
294+
295+
The Protect Branch API is currently available for developers to preview.
296+
During the preview period, the API may change without advance notice.
297+
Please see the[blog post](/changes/2015-11-2-protected-branches-api) for full details.
298+
299+
To access the API during the preview period, you must provide a custom[media type](/v3/media) in the`Accept` header:
300+
301+
application/vnd.github.loki-preview+json
302+
303+
The`protection` key will only be present in branch payloads if this header is passed.
304+
305+
{{/tip}}
306+
289307
<%= headers 200 %>
290308
<%= json(:branch) %>
291309

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp