MCPcopy Create free account
hub / github.com/alibaba/open-code-review / inputValues

Function inputValues

scripts/github-actions/action-contract.test.js:155–161  ·  view source on GitHub ↗
(overrides = {})

Source from the content-addressed store, hash-verified

153const STEPS = parseSteps(ACTION_TEXT);
154
155function inputValues(overrides = {}) {
156 const values = {};
157 for (const [name, definition] of Object.entries(INPUTS)) {
158 if (definition.default !== undefined) values[name] = definition.default;
159 }
160 return Object.assign(values, overrides);
161}
162
163function resolveInputExpressions(value, values) {
164 const resolved = String(value).replace(/\$\{\{\s*inputs\.([A-Za-z0-9_]+)\s*\}\}/g, (_match, name) => {

Calls

no outgoing calls

Tested by

no test coverage detected