mirror of
https://github.com/github/codeql-action.git
synced 2026-10-29 17:17:15 +00:00
Allow logging functions to accept string[] directly
This commit is contained in:
20
lib/entry-points.js
generated
20
lib/entry-points.js
generated
@@ -170510,12 +170510,24 @@ function fixCodeQualityCategory(logger2, category, env = getEnv()) {
|
||||
|
||||
// src/logging.ts
|
||||
var core5 = __toESM(require_core());
|
||||
var joinMessageStrings = (message) => {
|
||||
if (Array.isArray(message)) {
|
||||
return message.join(" ");
|
||||
} else {
|
||||
return message;
|
||||
}
|
||||
};
|
||||
var autoJoinMessageStrings = (fn) => {
|
||||
return (message) => {
|
||||
return fn(joinMessageStrings(message));
|
||||
};
|
||||
};
|
||||
function getActionsLogger() {
|
||||
return {
|
||||
debug: core5.debug,
|
||||
info: core5.info,
|
||||
warning: core5.warning,
|
||||
error: core5.error,
|
||||
debug: autoJoinMessageStrings(core5.debug),
|
||||
info: autoJoinMessageStrings(core5.info),
|
||||
warning: autoJoinMessageStrings(core5.warning),
|
||||
error: autoJoinMessageStrings(core5.error),
|
||||
isDebug: core5.isDebug,
|
||||
startGroup: core5.startGroup,
|
||||
endGroup: core5.endGroup
|
||||
|
||||
Reference in New Issue
Block a user