public Single<Gist> editGist(Gist gist) {
        CreateGist edit = CreateGist.builder()
                .files(gist.files())
                .description(gist.description())
                .isPublic(gist.isPublic())
                .build();

        return gistService.editGist(edit)
                .map(response -> addGist(response.body()));
    }
Edit gist.

@param gist The Gist to edit
@return edited gist
app/src/main/java/com/github/pockethub/android/core/gist/GistStore.java