provider repos PATCH /repos/{owner}/{repo}/releases/{release_id}
@utdk/github /repos/{owner}/{repo}/releases/{release_id}
Update a release
Users with push access to the repository can edit a release.
owner path required
The account owner of the repository. The name is not case sensitive.
string
repo path required
The name of the repository without the `.git` extension. The name is not case sensitive.
string
release_id path required
The unique identifier of the release.
integer

Try it

Authentication
Configure credentials for GitHub v3 REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

repos.updateRelease
PATCH/repos/{owner}/{repo}/releases/{release_id}
Users with push access to the repository can edit a release.

Parameters

required

The account owner of the repository. The name is not case sensitive.

required

The name of the repository without the `.git` extension. The name is not case sensitive.

required

The unique identifier of the release.

Input

The name of the tag.

Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch.

The name of the release.

Text describing the contents of the tag.

`true` makes the release a draft, and `false` publishes the release.

`true` to identify the release as a prerelease, `false` to identify the release as a full release.

Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version.

If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. If there is already a discussion linked to the release, this parameter is ignored. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)."

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import github from '@utdk/github';

await github.repos.updateRelease({
  "make_latest": "true"
})