Skip to content

Commit c2e40b5

Browse files
committed
Add ML-powered query enablement info to analyze finish status report
1 parent 2c6b76b commit c2e40b5

11 files changed

Lines changed: 37 additions & 15 deletions

lib/actions-util.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze-action-env.test.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze-action-env.test.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze-action-input.test.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze-action-input.test.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze-action.js

Lines changed: 11 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze-action.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/actions-util.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,12 @@ export interface StatusReportBase {
576576
completed_at?: string;
577577
/** State this action is currently in. */
578578
status: ActionStatus;
579+
/**
580+
* Information about the enablement of the ML-powered JS query pack.
581+
*
582+
* @see {@link util.getMlPoweredJsQueriesStatus}
583+
*/
584+
ml_powered_javascript_queries?: string;
579585
/** Cause of the failure (or undefined if status is not failure). */
580586
cause?: string;
581587
/** Stack trace of the failure (or undefined if status is not failure). */

src/analyze-action-env.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ test("analyze action with RAM & threads from environment variables", async (t) =
3131
sinon.stub(configUtils, "getConfig").resolves({
3232
gitHubVersion: { type: util.GitHubVariant.DOTCOM },
3333
languages: [],
34+
packs: [],
3435
} as unknown as configUtils.Config);
3536
const requiredInputStub = sinon.stub(actionsUtil, "getRequiredInput");
3637
requiredInputStub.withArgs("token").returns("fake-token");

src/analyze-action-input.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ test("analyze action with RAM & threads from action inputs", async (t) => {
3131
sinon.stub(configUtils, "getConfig").resolves({
3232
gitHubVersion: { type: util.GitHubVariant.DOTCOM },
3333
languages: [],
34+
packs: [],
3435
} as unknown as configUtils.Config);
3536
const requiredInputStub = sinon.stub(actionsUtil, "getRequiredInput");
3637
requiredInputStub.withArgs("token").returns("fake-token");

0 commit comments

Comments
 (0)