Method: Github::Client::Activity::Watching#create

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

#create(*args) ⇒ Object Also known as: subscribe

Create subscription to a repository

Examples:

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

Parameters:

See Also:



95
96
97
98
99
# File 'lib/github_api/client/activity/watching.rb', line 95

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

  put_request("/repos/#{arguments.user}/#{arguments.repo}/subscription", arguments.params)
end