class Github::Issues::Labels
def replace(user_name, repo_name, issue_id, *args)
github.issues.labels.replace 'user-name', 'repo-name', 'issue-id', 'label1', 'label2', ...
github = Github.new
= Examples
Sending an empty array ([]) will remove all Labels from the Issue.
Replace all labels for an issue
def replace(user_name, repo_name, issue_id, *args) params = args.extract_options! params['data'] = args unless args.empty? set :user => user_name, :repo => repo_name assert_presence_of user, repo, issue_id normalize! params put_request("/repos/#{user}/#{repo}/issues/#{issue_id}/labels", params) end