pub struct CommitAuthorConfig {
pub name: Option<String>,
pub email: Option<String>,
pub signing: Option<CommitSigningConfig>,
pub use_github_app_token: bool,
}Expand description
Shared commit author configuration with optional GPG/SSH signing.
Equivalent to GoReleaser’s CommitAuthor.
Fields§
§name: Option<String>Git commit author display name.
email: Option<String>Git commit author email address.
signing: Option<CommitSigningConfig>Commit signing configuration.
use_github_app_token: boolWhen true, omit the explicit -c user.name= / -c user.email=
overrides at commit time and let the running git client use the
invoking GitHub App’s identity (i.e. the <app-slug>[bot]@users.noreply.github.com
account that the GitHub Actions checkout step has already configured
in the repo’s local git config).
Mirrors GoReleaser’s CommitAuthor.UseGithubAppToken
(internal/git/config/github.go:381); the canonical use-case is
PRs against homebrew/homebrew-core / kubernetes-sigs/krew-index
/ microsoft/winget-pkgs opened from a GitHub App workflow, where
EasyCLA / DCO / signed-commit policies require the App’s identity
(rather than a per-user bot identity) to land the merge.
Implementations§
Source§impl CommitAuthorConfig
impl CommitAuthorConfig
Sourcepub fn normalize_defaults(&mut self)
pub fn normalize_defaults(&mut self)
Fill in the anodizer default name/email when either field is empty.
Matches GoReleaser’s commitauthor.Default(brew.CommitAuthor) which
runs during the Default pass — so validation messages that reference
commit-author identity see non-empty strings rather than blanks.
Trait Implementations§
Source§impl Clone for CommitAuthorConfig
impl Clone for CommitAuthorConfig
Source§fn clone(&self) -> CommitAuthorConfig
fn clone(&self) -> CommitAuthorConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CommitAuthorConfig
impl Debug for CommitAuthorConfig
Source§impl Default for CommitAuthorConfig
impl Default for CommitAuthorConfig
Source§fn default() -> CommitAuthorConfig
fn default() -> CommitAuthorConfig
Source§impl<'de> Deserialize<'de> for CommitAuthorConfigwhere
CommitAuthorConfig: Default,
impl<'de> Deserialize<'de> for CommitAuthorConfigwhere
CommitAuthorConfig: 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>,
Source§impl JsonSchema for CommitAuthorConfig
impl JsonSchema for CommitAuthorConfig
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more