class Github::Repos::Watching

def watching?(user_name, repo_name, params={})


github.repos.watching.watching? 'user-name', 'repo-name'
github = Github.new
= Examples
Returns true if this repo is watched by you, false otherwise

Check if you are watching a repository
def watching?(user_name, repo_name, params={})
  _validate_presence_of user_name, repo_name
  normalize! params
  get_request("/user/subscriptions/#{user_name}/#{repo_name}", params)
  true
rescue Github::Error::NotFound
  false
end