mirror of
https://github.com/github/codeql-action.git
synced 2026-04-27 09:18:47 +00:00
Rename getDefaultConfig and update doc comment
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user