33module Github
44 # Repository Starring is a feature that lets users bookmark repositories.
55 # Stars are shown next to repositories to show an approximate level of interest. # Stars have no effect on notifications or the activity feed.
6- class Repos ::Starring < API
6+ class Activity ::Starring < API
77
88 # List stargazers
99 #
1010 # = Examples
1111 # github = Github.new :user => 'user-name', :repo => 'repo-name'
12- # github.repos .starring.list
13- # github.repos .starring.list { |star| ... }
12+ # github.activity .starring.list
13+ # github.activity .starring.list { |star| ... }
1414 #
1515 def list ( user_name , repo_name , params = { } )
1616 set :user => user_name , :repo => repo_name
@@ -27,13 +27,13 @@ def list(user_name, repo_name, params={})
2727 #
2828 # = Examples
2929 # github = Github.new
30- # github.repos .starring.starred :user => 'user-name'
30+ # github.activity .starring.starred :user => 'user-name'
3131 #
3232 # List repos being starred by the authenticated user
3333 #
3434 # = Examples
3535 # github = Github.new :oauth_token => '...'
36- # github.repos .starring.starred
36+ # github.activity .starring.starred
3737 #
3838 def starred ( *args )
3939 params = args . extract_options!
@@ -54,7 +54,7 @@ def starred(*args)
5454 #
5555 # = Examples
5656 # github = Github.new
57- # github.repos .starring.starring? 'user-name', 'repo-name'
57+ # github.activity .starring.starring? 'user-name', 'repo-name'
5858 #
5959 def starring? ( user_name , repo_name , params = { } )
6060 assert_presence_of user_name , repo_name
@@ -71,7 +71,7 @@ def starring?(user_name, repo_name, params={})
7171 #
7272 # = Examples
7373 # github = Github.new
74- # github.repos .starring.star 'user-name', 'repo-name'
74+ # github.activity .starring.star 'user-name', 'repo-name'
7575 #
7676 def star ( user_name , repo_name , params = { } )
7777 set :user => user_name , :repo => repo_name
0 commit comments