MCPcopy Create free account
hub / github.com/EndBug/add-and-commit / setDefault

Function setDefault

src/io.ts:80–83  ·  view source on GitHub ↗
(input: input, value: string)

Source from the content-addressed store, hash-verified

78 else return delete process.env[`INPUT_${input.toUpperCase()}`];
79 }
80 function setDefault(input: input, value: string) {
81 if (!getInput(input)) setInput(input, value);
82 return getInput(input);
83 }
84
85 // #region add, remove
86 if (!getInput('add') && !getInput('remove'))

Callers 1

checkInputsFunction · 0.70

Calls 2

getInputFunction · 0.70
setInputFunction · 0.70

Tested by

no test coverage detected