public EditAssigneeTask edit(User assignee) {
        String assigneeLogin = assignee != null ? assignee.login() : "";

        IssueRequest edit = IssueRequest.builder()
                .assignees(Collections.singletonList(assigneeLogin))
                .build();

        store.editIssue(repositoryId, issueNumber, edit)
                .subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .compose(RxProgress.bindToLifecycle(activity, R.string.updating_assignee))
                .as(AutoDisposeUtils.bindToLifecycle(activity))
                .subscribe(observer);

        return this;
    }
Edit issue to have given assignee.

@param assignee The user the assign
@return this task
app/src/main/java/com/github/pockethub/android/ui/issue/EditAssigneeTask.java