mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 09:14:58 +00:00
Omit the feature flag name from the per-language bundle debug log
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2
lib/entry-points.js
generated
2
lib/entry-points.js
generated
@@ -151642,7 +151642,7 @@ async function getPerLanguageBundleLanguage({
|
||||
return void 0;
|
||||
};
|
||||
if (!await features.getValue("per_language_bundles_v2" /* PerLanguageBundles */)) {
|
||||
return explain(`the ${"per_language_bundles_v2" /* PerLanguageBundles */} feature is disabled`);
|
||||
return explain("the feature is disabled");
|
||||
}
|
||||
if (otherLanguagePacksReason !== void 0) {
|
||||
return explain(otherLanguagePacksReason);
|
||||
|
||||
@@ -162,9 +162,7 @@ test("getPerLanguageBundleLanguage explains a disabled feature before checking e
|
||||
t.is(language, undefined);
|
||||
t.deepEqual(
|
||||
messages.map((message) => message.message),
|
||||
[
|
||||
"Not using a per-language CodeQL bundle since the per_language_bundles_v2 feature is disabled.",
|
||||
],
|
||||
["Not using a per-language CodeQL bundle since the feature is disabled."],
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@ export async function getPerLanguageBundleLanguage(
|
||||
};
|
||||
|
||||
if (!(await features.getValue(Feature.PerLanguageBundles))) {
|
||||
return explain(`the ${Feature.PerLanguageBundles} feature is disabled`);
|
||||
return explain("the feature is disabled");
|
||||
}
|
||||
|
||||
// This reason applies whichever languages were requested, so check it first to avoid suggesting
|
||||
|
||||
Reference in New Issue
Block a user