def replace(*args)
      arguments(args, required: [:user, :repo, :number])
      params = arguments.params
      params['data'] = arguments.remaining unless arguments.remaining.empty?

      put_request("/repos/#{arguments.user}/#{arguments.repo}/issues/#{arguments.number}/labels", params)
    end
def replace(*args)
      arguments(args, required: [:user, :repo, :number])
      params = arguments.params
      params['data'] = arguments.remaining unless arguments.remaining.empty?

      put_request("/repos/#{arguments.user}/#{arguments.repo}/issues/#{arguments.number}/labels", params)
    end
Replace all labels for an issue

 Sending an empty array ([]) will remove all Labels from the Issue.

 @example
   github = Github.new
   github.issues.labels.replace 'user-name', 'repo-name', 'issue-number',
     'label1', 'label2', ...

 @api public