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

Commit1395c47

Browse files
committed
add hypermedia urls to subscriptions
1 parentac3ef2c commit1395c47

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

‎content/v3/activity/watching.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ List repositories being watched by the authenticated user.
4848
###Response
4949

5050
<%= headers 200 %>
51-
<%= json:subscription %>
51+
<%= json:repo_subscription %>
5252

5353
##Set a Repository Subscription
5454

@@ -67,7 +67,7 @@ repository.
6767
###Response
6868

6969
<%= headers 200 %>
70-
<%= json:subscription %>
70+
<%= json:repo_subscription %>
7171

7272
##Delete a Repository Subscription
7373

‎lib/resources.rb‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,8 +984,15 @@ def text_html(response, status, head = {})
984984
:subscribed=>true,
985985
:ignored=>false,
986986
:reason=>nil,
987-
:created_at=>"2012-10-06T21:34:12Z"
987+
:created_at=>"2012-10-06T21:34:12Z",
988+
:url=>"https://api.github.com/notifications/summaries/1/subscription",
989+
:summary_url=>"https://api.github.com/notifications/summaries/1"
988990
}
991+
992+
REPO_SUBSCRIPTION=SUBSCRIPTION.merge \
993+
:url=>"https://api.github.com/repos/octocat/example/subscription",
994+
:repository_url=>"https://api.github.com/repos/octocat/example"
995+
REPO_SUBSCRIPTION.delete:summary_url
989996
end
990997
end
991998

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp