MCPcopy Create free account
hub / github.com/AmrDeveloper/GQL / commit_conventional

Function commit_conventional

src/gitql/functions/commits.rs:22–27  ·  view source on GitHub ↗
(values: &[Box<dyn Value>])

Source from the content-addressed store, hash-verified

20}
21
22fn commit_conventional(values: &[Box<dyn Value>]) -> Box<dyn Value> {
23 let text = values[0].as_text().unwrap();
24 let split: Vec<&str> = text.split(':').collect();
25 let value = if split.len() == 1 { "" } else { split[0] }.to_string();
26 Box::new(TextValue::new(value))
27}

Callers

nothing calls this directly

Calls 2

as_textMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…