Parent

Methods

Class/Module Index [+]

Quicksearch

Github::Issues::Assignees

Public Instance Methods

all(*args) click to toggle source
Alias for: list
check(*args) click to toggle source

Check to see if a particular user is an assignee for a repository.

Examples

Github.issues.assignees.check 'user', 'repo', 'assignee'

github = Github.new user: 'user-name', repo: 'repo-name'
github.issues.assignees.check 'assignee'
# File lib/github_api/issues/assignees.rb, line 32
def check(*args)
  arguments(args, :required => [:user, :repo, :assignee])
  params = arguments.params

  get_request("/repos/#{user}/#{repo}/assignees/#{assignee}",params)
  true
rescue Github::Error::NotFound
  false
end
list(*args) click to toggle source

lists all the available assignees (owner + collaborators) to which issues may be assigned.

Examples

Github.issues.assignees.list 'user', 'repo'
Github.issues.assignees.list 'user', 'repo' { |assignee| ... }
# File lib/github_api/issues/assignees.rb, line 13
def list(*args)
  arguments(args, :required => [:user, :repo])
  params = arguments.params

  response = get_request("/repos/#{user}/#{repo}/assignees", params)
  return response unless block_given?
  response.each { |el| yield el }
end
Also aliased as: all

[Validate]

Generated with the Darkfish Rdoc Generator 2.