class Github::Client::Activity::Watching
def watching?(*args)
- Api: - public
Returns:
-
(Boolean)
-
Other tags:
- See: https://developer.github.com/v3/activity/watching/#check-if-you-are-watching-a-repository-legacy -
def watching?(*args) arguments(args, required: [:user, :repo]) get_request("/user/subscriptions/#{arguments.user}/#{arguments.repo}", arguments.params) true rescue Github::Error::NotFound false end