pub struct ReleaseManager { /* private fields */ }Expand description
Release Manager
Implementations§
Source§impl ReleaseManager
impl ReleaseManager
Sourcepub async fn create_release(
&mut self,
options: ReleaseOptions,
) -> Result<Release>
pub async fn create_release( &mut self, options: ReleaseOptions, ) -> Result<Release>
Create a GitHub release
Sourcepub async fn generate_release_notes(
&self,
options: ReleaseNotesOptions,
) -> Result<String>
pub async fn generate_release_notes( &self, options: ReleaseNotesOptions, ) -> Result<String>
Generate release notes from commits and PRs
Sourcepub async fn publish_release(&mut self, release: Release) -> Result<Release>
pub async fn publish_release(&mut self, release: Release) -> Result<Release>
Publish a release to GitHub
Sourcepub fn get_release_history(&self) -> Vec<ReleaseHistoryEntry>
pub fn get_release_history(&self) -> Vec<ReleaseHistoryEntry>
Get release history
Sourcepub fn get_release(&self, tag_name: &str) -> Option<ReleaseHistoryEntry>
pub fn get_release(&self, tag_name: &str) -> Option<ReleaseHistoryEntry>
Get a specific release from history
Sourcepub fn generate_changelog(&self) -> String
pub fn generate_changelog(&self) -> String
Maintain changelog
Sourcepub fn validate_version_tag(tag: &str) -> Result<SemanticVersion>
pub fn validate_version_tag(tag: &str) -> Result<SemanticVersion>
Validate semantic version tag
Sourcepub fn version_exists(&self, tag_name: &str) -> bool
pub fn version_exists(&self, tag_name: &str) -> bool
Check if version already exists in history
Sourcepub fn get_latest_release(&self) -> Option<ReleaseHistoryEntry>
pub fn get_latest_release(&self) -> Option<ReleaseHistoryEntry>
Get latest release
Trait Implementations§
Source§impl Clone for ReleaseManager
impl Clone for ReleaseManager
Source§fn clone(&self) -> ReleaseManager
fn clone(&self) -> ReleaseManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReleaseManager
impl Debug for ReleaseManager
Auto Trait Implementations§
impl Freeze for ReleaseManager
impl RefUnwindSafe for ReleaseManager
impl Send for ReleaseManager
impl Sync for ReleaseManager
impl Unpin for ReleaseManager
impl UnwindSafe for ReleaseManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more