mirror of
https://github.com/github/codeql-action.git
synced 2026-10-21 02:01:27 +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
@@ -170435,12 +170435,24 @@ function fixCodeQualityCategory(logger2, category, env = getEnv()) {
|
||||
|
||||
// src/logging.ts
|
||||
var core4 = __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: core4.debug,
|
||||
info: core4.info,
|
||||
warning: core4.warning,
|
||||
error: core4.error,
|
||||
debug: autoJoinMessageStrings(core4.debug),
|
||||
info: autoJoinMessageStrings(core4.info),
|
||||
warning: autoJoinMessageStrings(core4.warning),
|
||||
error: autoJoinMessageStrings(core4.error),
|
||||
isDebug: core4.isDebug,
|
||||
startGroup: core4.startGroup,
|
||||
endGroup: core4.endGroup
|
||||
|
||||
Reference in New Issue
Block a user