Method: Github::Client::Activity::Watching#unwatch

Defined in:
lib/github_api/client/activity/watching.rb

#unwatch(*args) ⇒ Object

Stop watching a repository

You need to be authenticated to stop watching a repository.

Examples:

github = Github.new
github.activity.watching.unwatch 'user-name', 'repo-name'

See Also:



170
171
172
173
174
# File 'lib/github_api/client/activity/watching.rb', line 170

def unwatch(*args)
  arguments(args, required: [:user, :repo])

  delete_request("/user/subscriptions/#{arguments.user}/#{arguments.repo}", arguments.params)
end