public function editRelease(string $id, string $tagName, string $targetCommitish = AbstractApi::BRANCH_MASTER,
                                string $name, string $body, bool $draft = false, bool $preRelease = false): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/releases/:id',
            $this->getRepositories()->getOwner(), $this->getRepositories()->getRepo(), $id), Request::METHOD_PATCH, [
                'tag_name'         => $tagName,
                'target_commitish' => $targetCommitish,
                'name'             => $name,
                'body'             => $body,
                'draft'            => $draft,
                'prerelease'       => $preRelease
            ]);
    }