public EditLabelsTask edit(@NonNull List<Label> labels) {
        List<String> labelNames = new ArrayList<>();
        for (Label label : labels) {
            labelNames.add(label.name());
        }

        IssueRequest editIssue = IssueRequest.builder().labels(labelNames).build();

        store.editIssue(repositoryId, issueNumber, editIssue)
                .subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .compose(RxProgress.bindToLifecycle(activity, R.string.updating_labels))
                .as(AutoDisposeUtils.bindToLifecycle(activity))
                .subscribe(observer);
        return this;
    }
Edit issue to have given labels.

@param labels
@return this task
app/src/main/java/com/github/pockethub/android/ui/issue/EditLabelsTask.java