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

Function getInput

src/io.ts:53–59  ·  view source on GitHub ↗
(
  name: T,
  parseAsBool = false,
)

Source from the content-addressed store, hash-verified

51 parseAsBool?: false,
52): InputTypes[T];
53export function getInput<T extends input>(
54 name: T,
55 parseAsBool = false,
56): InputTypes[T] | boolean {
57 if (parseAsBool) return core.getBooleanInput(name);
58 return core.getInput(name) as InputTypes[T];
59}
60
61export function setOutput<T extends output>(name: T, value: OutputTypes[T]) {
62 core.debug(`Setting output: ${name}=${value}`);

Callers 6

getOctokitClientFunction · 0.90
main.tsFile · 0.90
addFunction · 0.90
removeFunction · 0.90
setDefaultFunction · 0.70
checkInputsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected