pub struct ReposCreateReleaseRequest {
pub tag_name: String,
pub target_commitish: Option<String>,
pub name: Option<String>,
pub body: Option<String>,
pub draft: Option<bool>,
pub prerelease: Option<bool>,
pub discussion_category_name: Option<String>,
pub generate_release_notes: Option<bool>,
pub make_latest: Option<MakeLatest>,
}Fields§
§tag_name: StringThe name of the tag.
target_commitish: Option<String>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.
name: Option<String>The name of the release.
body: Option<String>Text describing the contents of the tag.
draft: Option<bool>true to create a draft (unpublished) release, false to create a published one.
prerelease: Option<bool>true to identify the release as a prerelease. false to identify the release as a full release.
discussion_category_name: Option<String>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. For more information, see "Managing categories for discussions in your repository."
generate_release_notes: Option<bool>Whether to automatically generate the name and body for this release. If name is specified, the specified name will be used; otherwise, a name will be automatically generated. If body is specified, the body will be pre-pended to the automatically generated notes.
make_latest: Option<MakeLatest>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.
Implementations§
Source§impl ReposCreateReleaseRequest
impl ReposCreateReleaseRequest
pub fn new(tag_name: String) -> ReposCreateReleaseRequest
Trait Implementations§
Source§impl Clone for ReposCreateReleaseRequest
impl Clone for ReposCreateReleaseRequest
Source§fn clone(&self) -> ReposCreateReleaseRequest
fn clone(&self) -> ReposCreateReleaseRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more