pub struct HooksConfig {
pub secret: Option<String>,
pub fix_label: String,
pub queue_label: String,
pub allow_users: Vec<String>,
}Expand description
Webhook trigger configuration — the hooks key of .kranz/config.json
(additive; absent ⇒ the route refuses closed, never open-accepts).
Loaded separately from crate::types::MissionConfig on purpose: the
secret must never ride into a mission.created event’s serialized config
or any other log, so this type has NO Serialize impl and a redacting
Debug. Debug/tracing output shows [REDACTED] for the secret.
Fields§
§secret: Option<String>Per-repo HMAC secret for X-Hub-Signature-256 verification.
fix_label: StringComment label that drafts a fix ticket (default kranz:fix).
queue_label: StringComment label that additionally pre-consents to queueing the drafted
plan (default kranz:fix-and-queue).
allow_users: Vec<String>GitHub logins allowed to request work through PR comments. Empty disables comment triggers; a valid webhook signature authenticates GitHub, not the commenter’s authority to spend or approve work.
Trait Implementations§
Source§impl Clone for HooksConfig
impl Clone for HooksConfig
Source§fn clone(&self) -> HooksConfig
fn clone(&self) -> HooksConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more