Skip to content

Commit

Permalink
Merge pull request #2668 from github/sidshank/improve-autobuilder-log…
Browse files Browse the repository at this point in the history
…-message

Make the Autobuilder log message referring to build modes clearer
  • Loading branch information
sidshank authored Jan 6, 2025
2 parents 5b6e617 + 5bf0e05 commit 3407610
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/autobuild.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/autobuild.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/doc-url.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/doc-url.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/autobuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ export async function determineAutobuildLanguages(
(await codeql.supportsFeature(ToolsFeature.TraceCommandUseBuildMode))) ||
config.buildMode === BuildMode.Manual
) {
logger.info(`Using ${config.buildMode} build mode, nothing to autobuild.`);
logger.info(
`Using build mode "${config.buildMode}", nothing to autobuild. ` +
`See ${DocUrl.CODEQL_BUILD_MODES} for more information.`,
);
return undefined;
}

Expand Down
1 change: 1 addition & 0 deletions src/doc-url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ export enum DocUrl {
SCANNING_ON_PUSH = "https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning#scanning-on-push",
SPECIFY_BUILD_STEPS_MANUALLY = "https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages#about-specifying-build-steps-manually",
TRACK_CODE_SCANNING_ALERTS_ACROSS_RUNS = "https://docs.github.com/en/enterprise-cloud@latest/code-security/code-scanning/integrating-with-code-scanning/sarif-support-for-code-scanning#providing-data-to-track-code-scanning-alerts-across-runs",
CODEQL_BUILD_MODES = "https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages#codeql-build-modes",
}

0 comments on commit 3407610

Please sign in to comment.