pub struct MilestoneConfig {
pub repo: Option<ScmRepoConfig>,
pub close: Option<bool>,
pub fail_on_error: Option<bool>,
pub name_template: Option<String>,
}Fields§
§repo: Option<ScmRepoConfig>Repository owner/name. Auto-detected from git remote if not set.
close: Option<bool>Close the milestone on release. Default: false.
fail_on_error: Option<bool>Fail the pipeline if milestone close fails. Default: false.
name_template: Option<String>Milestone name template (default: “{{ .Tag }}”).
Implementations§
Source§impl MilestoneConfig
impl MilestoneConfig
Sourcepub const DEFAULT_NAME_TEMPLATE: &'static str = "{{ Tag }}"
pub const DEFAULT_NAME_TEMPLATE: &'static str = "{{ Tag }}"
Default milestone name template. Mirrors GoReleaser
internal/pipe/milestone/milestone.go (cfg.NameTemplate = "{{.Tag}}").
Anodize uses Tera-style {{ Tag }}; the rendered value is
identical for any tag the project produces.
Sourcepub fn resolved_name_template(&self) -> &str
pub fn resolved_name_template(&self) -> &str
Resolve the milestone name template, falling back to
Self::DEFAULT_NAME_TEMPLATE.
Sourcepub fn resolved_close(&self) -> bool
pub fn resolved_close(&self) -> bool
Resolve close, falling back to false (don’t close milestones
on release by default).
Sourcepub fn resolved_fail_on_error(&self) -> bool
pub fn resolved_fail_on_error(&self) -> bool
Resolve fail_on_error, falling back to false (milestone close
errors are warnings by default; opt in to fail-the-build).
Trait Implementations§
Source§impl Clone for MilestoneConfig
impl Clone for MilestoneConfig
Source§fn clone(&self) -> MilestoneConfig
fn clone(&self) -> MilestoneConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MilestoneConfig
impl Debug for MilestoneConfig
Source§impl Default for MilestoneConfig
impl Default for MilestoneConfig
Source§fn default() -> MilestoneConfig
fn default() -> MilestoneConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MilestoneConfigwhere
MilestoneConfig: Default,
impl<'de> Deserialize<'de> for MilestoneConfigwhere
MilestoneConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for MilestoneConfig
impl JsonSchema for MilestoneConfig
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for MilestoneConfig
impl RefUnwindSafe for MilestoneConfig
impl Send for MilestoneConfig
impl Sync for MilestoneConfig
impl Unpin for MilestoneConfig
impl UnsafeUnpin for MilestoneConfig
impl UnwindSafe for MilestoneConfig
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