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

Function ocrInvokingSteps

scripts/github-actions/action-contract.test.js:1931–1940  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1929// fail-closed: a future step that invokes `ocr` without disabling the
1930// self-updater breaks this contract without any step-name list to maintain.
1931function ocrInvokingSteps() {
1932 return STEPS.filter((step) => {
1933 if (typeof step.run !== "string") return false;
1934 const code = step.run
1935 .split(/\r?\n/)
1936 .filter((line) => !/^\s*#/.test(line))
1937 .join("\n");
1938 return /(?:^|[\s;&|(`])ocr\s+\S/.test(code);
1939 });
1940}
1941
1942function testActionOcrInvocationsDisableSelfUpdate() {
1943 const invokers = ocrInvokingSteps();

Calls

no outgoing calls

Tested by

no test coverage detected