class Github::Repos::Releases
def edit(*args)
"prerelease": false
"draft": false,
"body": "Description of the release",
"name": "v1.0.0",
"target_commitish": "master",
"tag_name": "v1.0.0",
github.repos.releases.edit 'owner', 'repo', 'id',
github = Github.new
= Examples
the release as a full release. Default is false.
the release as a prerelease. false to identify
* :prerelease - Optional boolean - true to identify
a published one. Default is false.
(unpublished) release, false to create
* :draft - Optional boolean - true to create a draft
* :body - Optional string
* :name - Optional string
branch (usually 'master'). Unused if the Git tag already exists.
any branch or commit SHA. Defaults to the repository's default
value that determines where the Git tag is created from. Can be
* :target_commitish - Optional string - Specifies the commitish
* :tag_name - Required string
= Inputs
Edit a release
def edit(*args) arguments(args, required: [:owner, :repo, :id]) do sift VALID_RELEASE_PARAM_NAMES end params = arguments.params patch_request("/repos/#{owner}/#{repo}/releases/#{id}", params) end