From 18e8e6759b21604dc4e3a9e21950da6ae7934849 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Sat, 25 Oct 2025 00:08:31 -0600 Subject: [PATCH] Add WorkflowCell::add_input --- crates/gh-workflow/src/event.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/gh-workflow/src/event.rs b/crates/gh-workflow/src/event.rs index 45b42cd..4de46b9 100644 --- a/crates/gh-workflow/src/event.rs +++ b/crates/gh-workflow/src/event.rs @@ -808,6 +808,13 @@ pub struct WorkflowCall { pub secrets: HashMap, } +impl WorkflowCall { + pub fn add_input(mut self, name: impl Into, input: WorkflowCallInput) -> Self { + self.inputs.insert(name.into(), input); + self + } +} + /// Configuration for workflow call input #[derive(Debug, Clone, Default, Deserialize, Serialize, PartialEq, Setters, Eq)] #[setters(strip_option, into)]