Rename getDefaultConfig and update doc comment

This commit is contained in:
Michael B. Gale
2025-09-04 10:01:17 +01:00
parent 8d623f4184
commit f2e20f52e0
3 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ test("load empty config", async (t) => {
}),
);
const expectedConfig = await configUtils.getDefaultConfig(
const expectedConfig = await configUtils.initActionState(
createTestInitConfigInputs({
languagesInput: languages,
tempDir,
+4 -3
View File
@@ -508,9 +508,10 @@ export interface InitConfigInputs {
}
/**
* Get the default config, populated without user configuration file.
* Initialise the CodeQL Action state, which includes the base configuration for the Action
* and computes the configuration for the CodeQL CLI.
*/
export async function getDefaultConfig(
export async function initActionState(
{
analysisKindsInput,
languagesInput,
@@ -1107,7 +1108,7 @@ export async function initConfig(inputs: InitConfigInputs): Promise<Config> {
);
}
const config = await getDefaultConfig(inputs, userConfig);
const config = await initActionState(inputs, userConfig);
// The choice of overlay database mode depends on the selection of languages
// and queries, which in turn depends on the user config and the augmentation