File tree Expand file tree Collapse file tree 3 files changed +34
-1
lines changed Expand file tree Collapse file tree 3 files changed +34
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ kind : change
3
+ title : New Attributes for Starring API
4
+ created_at : 2014-12-09
5
+ author_name : arfon
6
+ ---
7
+
8
+ You can now see when a user starred a repository. To receive the new response format containing the ` starred_at ` field, request the new media type:
9
+
10
+ curl -H "Accept: application/vnd.github.v3.star+json" https://api.github.com/users/andrew/starred
11
+
12
+ Note the starred repository is now available in the repo field.
13
+
14
+ ### Feedback
15
+
16
+ If you have any questions or feedback about these changes, please [ drop us a line] [ contact ] .
17
+
18
+ [ starring ] : /v3/activity/starring/#list-repositories-being-starred-with-star-creation-timestamps
19
+ [ contact ] : https://github.com/contact?form[subject]=New+Attributes+for+Starring+API
Original file line number Diff line number Diff line change @@ -47,12 +47,21 @@ Name | Type | Description
47
47
` sort ` |` string ` | One of ` created ` (when the repository was starred) or ` updated ` (when it was last pushed to). Default: ` created `
48
48
` direction ` |` string ` | One of ` asc ` (ascending) or ` desc ` (descending). Default: ` desc `
49
49
50
-
51
50
### Response
52
51
53
52
<%= headers 200, : pagination => default_pagination_rels %>
54
53
<%= json(: repo ) { |h| [ h] } %>
55
54
55
+ ## List repositories being starred with star creation timestamps
56
+
57
+ You can also find out _ when_ stars were created by passing the following custom content-type via the ` Accept ` header.
58
+
59
+ Accept: application/vnd.github.v3.star+json
60
+
61
+ ### Response
62
+ <%= headers 200, : pagination => default_pagination_rels %>
63
+ <%= json(: starred_repo ) { |hash| [ hash] } %>
64
+
56
65
## Check if you are starring a repository
57
66
58
67
Requires for the user to be authenticated.
Original file line number Diff line number Diff line change @@ -251,6 +251,11 @@ def fetch_content(key)
251
251
"source" => REPO
252
252
} )
253
253
254
+ STARRED_REPO ||= {
255
+ "starred_at" => "2011-01-16T19:06:43Z" ,
256
+ "repo" => REPO
257
+ }
258
+
254
259
TAG ||= {
255
260
"name" => "v0.1" ,
256
261
"commit" => {
You can’t perform that action at this time.
0 commit comments