@Override
    protected void createComment(final String comment) {
        CommentRequest commentRequest = CommentRequest.builder()
                .body(comment)
                .build();

        ServiceGenerator.createService(this, GistCommentService.class)
                .createGistComment(gist.id(), commentRequest)
                .subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .as(AutoDisposeUtils.bindToLifecycle(this))
                .subscribe(response -> finish(response.body()), error -> {
                    Log.e(TAG, "Exception creating comment on gist", error);

                    ToastUtils.show(this, error.getMessage());
                });
    }
Create intent to create a comment

@param gist
@return intent
app/src/main/java/com/github/pockethub/android/ui/gist/CreateCommentActivity.java