MCPcopy Create free account
hub / github.com/codemod/codemod / resolve_usize_value

Function resolve_usize_value

crates/models/src/variable.rs:254–282  ·  view source on GitHub ↗

Resolve a `serde_json::Value` that is either a literal number or a string containing a `${{ }}` expression to a `usize`. Examples: - `Value::Number(20)` → `Ok(20)` - `Value::String("${{ params.pr_size }}")` → resolves expression → `Ok(n)`

(
    value: &serde_json::Value,
    params: &HashMap<String, Value>,
    state: &HashMap<String, Value>,
    matrix_values: Option<&HashMap<String, Value>>,
    task_context: Option<&TaskExpressionCo

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

execute_shard_stepMethod · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…