pub enum ConfigError {
AutolinkTemplateWithoutNumber {
key_prefix: KeyPrefix,
},
EmptyWebhookEvents {
url: WebhookUrl,
},
EnvironmentWaitTimer {
environment: EnvironmentName,
minutes: u32,
},
TooManyEnvironmentReviewers {
environment: EnvironmentName,
count: usize,
},
ConflictingDeploymentBranchPolicy {
environment: EnvironmentName,
},
BranchPoliciesWithoutCustom {
environment: EnvironmentName,
},
MissingActorId {
ruleset: RulesetName,
actor_type: ActorType,
},
UnexpectedActorId {
ruleset: RulesetName,
actor_type: ActorType,
},
NoMergeMethods {
ruleset: RulesetName,
},
VariableName(VariableNameError),
}Expand description
A configuration value that decodes but GitHub would refuse.
Variants§
AutolinkTemplateWithoutNumber
An autolink URL template has nowhere to put the reference number.
EmptyWebhookEvents
A webhook declares no events.
Fields
url: WebhookUrlThe webhook’s delivery URL.
EnvironmentWaitTimer
A wait timer is longer than GitHub allows.
TooManyEnvironmentReviewers
An environment has more reviewers than GitHub allows.
Fields
environment: EnvironmentNameThe environment’s name.
ConflictingDeploymentBranchPolicy
GitHub rejects protected branches and custom branch policies together.
Fields
environment: EnvironmentNameThe environment’s name.
BranchPoliciesWithoutCustom
Branch policies need custom branch policies to be on.
Fields
environment: EnvironmentNameThe environment’s name.
MissingActorId
A bypass actor of this type needs an actor_id.
Fields
ruleset: RulesetNameThe ruleset’s name.
UnexpectedActorId
A bypass actor of this type must not have an actor_id.
Fields
ruleset: RulesetNameThe ruleset’s name.
NoMergeMethods
A pull request rule that allows no merge method blocks every merge.
Fields
ruleset: RulesetNameThe ruleset’s name.
VariableName(VariableNameError)
An Actions variable name is not one GitHub stores.
Trait Implementations§
Source§impl Debug for ConfigError
impl Debug for ConfigError
Source§impl Display for ConfigError
impl Display for ConfigError
Source§impl Error for ConfigError
impl Error for ConfigError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()