Skip to content

Commit f2e20f5

Browse files
committed
Rename getDefaultConfig and update doc comment
1 parent 8d623f4 commit f2e20f5

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

lib/init-action.js

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

src/config-utils.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ test("load empty config", async (t) => {
157157
}),
158158
);
159159

160-
const expectedConfig = await configUtils.getDefaultConfig(
160+
const expectedConfig = await configUtils.initActionState(
161161
createTestInitConfigInputs({
162162
languagesInput: languages,
163163
tempDir,

src/config-utils.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,9 +508,10 @@ export interface InitConfigInputs {
508508
}
509509

510510
/**
511-
* Get the default config, populated without user configuration file.
511+
* Initialise the CodeQL Action state, which includes the base configuration for the Action
512+
* and computes the configuration for the CodeQL CLI.
512513
*/
513-
export async function getDefaultConfig(
514+
export async function initActionState(
514515
{
515516
analysisKindsInput,
516517
languagesInput,
@@ -1107,7 +1108,7 @@ export async function initConfig(inputs: InitConfigInputs): Promise<Config> {
11071108
);
11081109
}
11091110

1110-
const config = await getDefaultConfig(inputs, userConfig);
1111+
const config = await initActionState(inputs, userConfig);
11111112

11121113
// The choice of overlay database mode depends on the selection of languages
11131114
// and queries, which in turn depends on the user config and the augmentation

0 commit comments

Comments
 (0)