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

Function ocrInvokingSteps

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

Source from the content-addressed store, hash-verified

1915// fail-closed: a future step that invokes `ocr` without disabling the
1916// self-updater breaks this contract without any step-name list to maintain.
1917function ocrInvokingSteps() {
1918 return STEPS.filter((step) => {
1919 if (typeof step.run !== "string") return false;
1920 const code = step.run
1921 .split(/\r?\n/)
1922 .filter((line) => !/^\s*#/.test(line))
1923 .join("\n");
1924 return /(?:^|[\s;&|(`])ocr\s+\S/.test(code);
1925 });
1926}
1927
1928function testActionOcrInvocationsDisableSelfUpdate() {
1929 const invokers = ocrInvokingSteps();

Calls

no outgoing calls

Tested by

no test coverage detected