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

Commit1d6a85f

Browse files
author
Hubot
committed
Sync changes from upstream repository
1 parent2dda0f4 commit1d6a85f

File tree

10 files changed

+542
-0
lines changed

10 files changed

+542
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title:Preview support for Reactions API
3+
author_name:kneemer
4+
---
5+
6+
GitHub recently added[Reactions to Pull Requests, Issues, and Comments][reactions-blog-post] to help people express their feelings more simply and effectively in conversations. We are adding endpoints for Reactions so that you can now react and unreact via the API. You can enable these changes during the preview period by providing a custom[media type][media-type] in the`Accept` header:
7+
8+
application/vnd.github.squirrel-girl-preview
9+
10+
For example:
11+
12+
To view reactions on an issue:
13+
14+
```command-line
15+
$ curl "https://api.github.com/repos/github/hubot/issues/1/reactions" \
16+
-H "Accept: application/vnd.github.squirrel-girl-preview"
17+
```
18+
19+
20+
You can learn more about the new reaction response objects in the updated[Commit comment][commit-comment-doc],[Issue][issue-doc],[Issue comment][issue-comment-doc], and[Review Comment][review-comment-doc] documentation. There is also new[Reaction][reaction-doc] documentation.
21+
22+
During the preview period, we may change aspects of these APIs based on developer feedback. We will announce the changes here on the developer blog, but we will not provide advance notice.
23+
24+
If you have any questions or feedback, please[let us know][contact].
25+
26+
[media-type]:/v3/media
27+
[reaction-doc]:/v3/reactions
28+
[issue-doc]:/v3/issues#preview-period-org-issues
29+
[issue-comment-doc]:/v3/issues/comments#preview-period-issue-comments
30+
[review-comment-doc]:/v3/pulls/comments#preview-period-pull-comments
31+
[commit-comment-doc]:/v3/repos/comments#preview-period-commits-comments
32+
[contact]:https://github.com/contact?form%5Bsubject%5D=Reactions+API+Preview
33+
[reactions-blog-post]:https://github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments

‎content/v3/issues.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,26 @@ Name | Type | Description
4949
<%= headers 200,:pagination => default_pagination_rels %>
5050
<%= json(:issue) { |h|[h] } %>
5151

52+
{% if page.version == 'dotcom' %}
53+
####Reactions summary
54+
55+
{{#tip}}
56+
57+
<aname="preview-period-org-issues"></a>
58+
59+
An additional`reactions` object in the issue payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice.
60+
Please see the[blog post](/changes/2016-05-12-reactions-api-preview) for full details.
61+
62+
To access the API you must provide a custom[media type](/v3/media) in the`Accept` header:
63+
64+
application/vnd.github.squirrel-girl-preview
65+
66+
The`reactions` key will have the following payload where`url` can be used to construct the API location for[listing and creating](/v3/reactions) reactions.
67+
68+
{{/tip}}
69+
<%= json:issue_reaction_summary %>
70+
{% endif %}
71+
5272
##List issues for a repository
5373

5474
<%= fetch_content(:prs_as_issues) %>
@@ -74,6 +94,27 @@ Name | Type | Description
7494
<%= headers 200,:pagination => default_pagination_rels %>
7595
<%= json(:issue) { |h|[h] } %>
7696

97+
{% if page.version == 'dotcom' %}
98+
####Reactions summary
99+
100+
{{#tip}}
101+
102+
<aname="preview-period-repo-issues"></a>
103+
104+
An additional`reactions` object in the issue payload is currently available for developers to preview.
105+
During the preview period, the APIs may change without advance notice.
106+
Please see the[blog post](/changes/2016-05-12-reactions-api-preview) for full details.
107+
108+
To access the API you must provide a custom[media type](/v3/media) in the`Accept` header:
109+
110+
application/vnd.github.squirrel-girl-preview
111+
112+
The`reactions` key will have the following payload where`url` can be used to construct the API location for[listing and creating](/v3/reactions) reactions.
113+
114+
{{/tip}}
115+
<%= json:issue_reaction_summary %>
116+
{% endif %}
117+
77118
##Get a single issue
78119

79120
<%= fetch_content(:prs_as_issues) %>
@@ -85,6 +126,27 @@ Name | Type | Description
85126
<%= headers 200 %>
86127
<%= json:full_issue %>
87128

129+
{% if page.version == 'dotcom' %}
130+
####Reactions summary
131+
132+
{{#tip}}
133+
134+
<aname="preview-period-issue"></a>
135+
136+
An additional`reactions` object in the issue payload is currently available for developers to preview.
137+
During the preview period, the APIs may change without advance notice.
138+
Please see the[blog post](/changes/2016-05-12-reactions-api-preview) for full details.
139+
140+
To access the API you must provide a custom[media type](/v3/media) in the`Accept` header:
141+
142+
application/vnd.github.squirrel-girl-preview
143+
144+
The`reactions` key will have the following payload where`url` can be used to construct the API location for[listing and creating](/v3/reactions) reactions.
145+
146+
{{/tip}}
147+
<%= json:issue_reaction_summary %>
148+
{% endif %}
149+
88150
##Create an issue
89151

90152
Any user with pull access to a repository can create an issue.

‎content/v3/issues/comments.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,27 @@ Name | Type | Description
3030
<%= headers 200,:pagination => default_pagination_rels %>
3131
<%= json(:issue_comment) { |h|[h] } %>
3232

33+
{% if page.version == 'dotcom' %}
34+
####Reactions summary
35+
36+
{{#tip}}
37+
38+
<aname="preview-period-issue-comments"></a>
39+
40+
An additional`reactions` object in the issue comment payload is currently available for developers to preview.
41+
During the preview period, the APIs may change without advance notice.
42+
Please see the[blog post](/changes/2016-05-12-reactions-api-preview) for full details.
43+
44+
To access the API you must provide a custom[media type](/v3/media) in the`Accept` header:
45+
46+
application/vnd.github.squirrel-girl-preview
47+
48+
The`reactions` key will have the following payload where`url` can be used to construct the API location for[listing and creating](/v3/reactions) reactions.
49+
50+
{{/tip}}
51+
<%= json:issue_comment_reaction_summary %>
52+
{% endif %}
53+
3354
##List comments in a repository
3455

3556
GET /repos/:owner/:repo/issues/comments
@@ -50,6 +71,27 @@ Name | Type | Description
5071
<%= headers 200 %>
5172
<%= json(:issue_comment) { |h|[h] } %>
5273

74+
{% if page.version == 'dotcom' %}
75+
####Reactions summary
76+
77+
{{#tip}}
78+
79+
<aname="preview-period-issues-comments"></a>
80+
81+
An additional`reactions` object in the issue comment payload is currently available for developers to preview.
82+
During the preview period, the APIs may change without advance notice.
83+
Please see the[blog post](/changes/2016-05-12-reactions-api-preview) for full details.
84+
85+
To access the API you must provide a custom[media type](/v3/media) in the`Accept` header:
86+
87+
application/vnd.github.squirrel-girl-preview
88+
89+
The`reactions` key will have the following payload where`url` can be used to construct the API location for[listing and creating](/v3/reactions) reactions.
90+
91+
{{/tip}}
92+
<%= json:issue_comment_reaction_summary %>
93+
{% endif %}
94+
5395
##Get a single comment
5496

5597
GET /repos/:owner/:repo/issues/comments/:id
@@ -59,6 +101,27 @@ Name | Type | Description
59101
<%= headers 200,:pagination => default_pagination_rels %>
60102
<%= json:issue_comment %>
61103

104+
{% if page.version == 'dotcom' %}
105+
####Reactions summary
106+
107+
{{#tip}}
108+
109+
<aname="preview-period-issue-comment"></a>
110+
111+
An additional`reactions` object in the issue comment payload is currently available for developers to preview.
112+
During the preview period, the APIs may change without advance notice.
113+
Please see the[blog post](/changes/2016-05-12-reactions-api-preview) for full details.
114+
115+
To access the API you must provide a custom[media type](/v3/media) in the`Accept` header:
116+
117+
application/vnd.github.squirrel-girl-preview
118+
119+
The`reactions` key will have the following payload where`url` can be used to construct the API location for[listing and creating](/v3/reactions) reactions.
120+
121+
{{/tip}}
122+
<%= json:issue_comment_reaction_summary %>
123+
{% endif %}
124+
62125
##Create a comment
63126

64127
POST /repos/:owner/:repo/issues/:number/comments

‎content/v3/pulls/comments.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,27 @@ types](#custom-media-types). You can read more about the use of media types in t
2424
<%= headers 200,:pagination => default_pagination_rels %>
2525
<%= json(:pull_comment) { |h|[h] } %>
2626

27+
{% if page.version == 'dotcom' %}
28+
####Reactions summary
29+
30+
{{#tip}}
31+
32+
<aname="preview-period-pull-comments"></a>
33+
34+
An additional`reactions` object in the review comment payload is currently available for developers to preview.
35+
During the preview period, the APIs may change without advance notice.
36+
Please see the[blog post](/changes/2016-05-12-reactions-api-preview) for full details.
37+
38+
To access the API you must provide a custom[media type](/v3/media) in the`Accept` header:
39+
40+
application/vnd.github.squirrel-girl-preview
41+
42+
The`reactions` key will have the following payload where`url` can be used to construct the API location for[listing and creating](/v3/reactions) reactions.
43+
44+
{{/tip}}
45+
<%= json:pull_comment_reaction_summary %>
46+
{% endif %}
47+
2748
##List comments in a repository
2849

2950
GET /repos/:owner/:repo/pulls/comments
@@ -44,6 +65,27 @@ Name | Type | Description
4465
<%= headers 200,:pagination => default_pagination_rels %>
4566
<%= json(:pull_comment) { |h|[h] } %>
4667

68+
{% if page.version == 'dotcom' %}
69+
####Reactions summary
70+
71+
{{#tip}}
72+
73+
<aname="preview-period-pulls-comments"></a>
74+
75+
An additional`reactions` object in the review comment payload is currently available for developers to preview.
76+
During the preview period, the APIs may change without advance notice.
77+
Please see the[blog post](/changes/2016-05-12-reactions-api-preview) for full details.
78+
79+
To access the API you must provide a custom[media type](/v3/media) in the`Accept` header:
80+
81+
application/vnd.github.squirrel-girl-preview
82+
83+
The`reactions` key will have the following payload where`url` can be used to construct the API location for[listing and creating](/v3/reactions) reactions.
84+
85+
{{/tip}}
86+
<%= json:pull_comment_reaction_summary %>
87+
{% endif %}
88+
4789
##Get a single comment
4890

4991
GET /repos/:owner/:repo/pulls/comments/:id
@@ -53,6 +95,27 @@ Name | Type | Description
5395
<%= headers 200 %>
5496
<%= json:pull_comment %>
5597

98+
{% if page.version == 'dotcom' %}
99+
####Reactions summary
100+
101+
{{#tip}}
102+
103+
<aname="preview-period-pull-comment"></a>
104+
105+
An additional`reactions` object in the review comment payload is currently available for developers to preview.
106+
During the preview period, the APIs may change without advance notice.
107+
Please see the[blog post](/changes/2016-05-12-reactions-api-preview) for full details.
108+
109+
To access the API you must provide a custom[media type](/v3/media) in the`Accept` header:
110+
111+
application/vnd.github.squirrel-girl-preview
112+
113+
The`reactions` key will have the following payload where`url` can be used to construct the API location for[listing and creating](/v3/reactions) reactions.
114+
115+
{{/tip}}
116+
<%= json:pull_comment_reaction_summary %>
117+
{% endif %}
118+
56119
##Create a comment
57120

58121
POST /repos/:owner/:repo/pulls/:number/comments

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp