Method: ReposWatching#checkIfWatching

Defined in:
lib/github/repos/repos_watching.rb

#checkIfWatching(repo, user = nil) ⇒ Object



19
20
21
22
# File 'lib/github/repos/repos_watching.rb', line 19

def checkIfWatching(repo, user=nil)
  username = user == nil ? @github.username : user
  @github.get('user/watched/%s/%s' % [username, repo])
end