Skip to content
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit acdabae

Browse files
author
Hubot
committed
Sync changes from upstream repository
1 parent 614bcf8 commit acdabae

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

content/v3/activity/starring.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ for more details.
3030
<%= headers 200, :pagination => default_pagination_rels %>
3131
<%= json(:user) { |h| [h] } %>
3232

33+
### Alternative response with star creation timestamps
34+
35+
You can also find out _when_ stars were created by passing the following custom [media type](/v3/media/) via the `Accept` header:
36+
37+
Accept: application/vnd.github.v3.star+json
38+
39+
<%= headers 200, :pagination => default_pagination_rels %>
40+
<%= json(:stargazer_with_timestamps) { |hash| [hash] } %>
41+
3342
## List repositories being starred
3443

3544
List repositories being starred by a user.
@@ -52,13 +61,12 @@ Name | Type | Description
5261
<%= headers 200, :pagination => default_pagination_rels %>
5362
<%= json(:repo) { |h| [h] } %>
5463

55-
## List repositories being starred with star creation timestamps
64+
### Alternative response with star creation timestamps
5665

57-
You can also find out _when_ stars were created by passing the following custom content-type via the `Accept` header.
66+
You can also find out _when_ stars were created by passing the following custom [media type](/v3/media/) via the `Accept` header:
5867

5968
Accept: application/vnd.github.v3.star+json
6069

61-
### Response
6270
<%= headers 200, :pagination => default_pagination_rels %>
6371
<%= json(:starred_repo) { |hash| [hash] } %>
6472

lib/resources.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,11 @@ def fetch_content(key)
279279
"repo" => REPO
280280
}
281281

282+
STARGAZER_WITH_TIMESTAMPS ||= {
283+
"starred_at" => "2011-01-16T19:06:43Z",
284+
"user" => USER
285+
}
286+
282287
TAG ||= {
283288
"name" => "v0.1",
284289
"commit" => {

0 commit comments

Comments
 (0)