diff --git a/dist/index.js b/dist/index.js index aaec28b..69179e6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -52486,7 +52486,7 @@ var require_version = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.version = void 0; exports2.version = { - "revision": "7fea995", + "revision": "61e09ec", "year": "2024" }; } @@ -52572,7 +52572,6 @@ var utils_1 = require_utils7(); var version_1 = require_version(); var signale_1 = __importStar(require_signale2()); signale_1.default.config({ - displayFilename: true, displayTimestamp: true }); function generateMarkdownReport(clBinary) { @@ -52580,11 +52579,13 @@ function generateMarkdownReport(clBinary) { const totalsMarkdown = yield (0, exec_1.getExecOutput)(clBinary, ["report", "--format", "markdown"]); const unitsMarkdown = yield (0, exec_1.getExecOutput)(clBinary, ["findings", "--format", "markdown"]); let result = ""; - result += "## Codebase totals\n"; - result += totalsMarkdown.stdout; + result += "## CodeLimit Report\n"; result += "\n"; - result += "## Refactoring report\n"; + result += totalsMarkdown.stdout; + result += "### Findings\n"; result += unitsMarkdown.stdout; + result += "\n"; + result += "Generated by [CodeLimit](https://getcodelimit.github.io)\n"; return result; }); } diff --git a/src/action.ts b/src/action.ts index 7aefa47..1353ba7 100644 --- a/src/action.ts +++ b/src/action.ts @@ -20,7 +20,6 @@ import {version} from "./version"; import signale, {error, info, success} from "signale"; signale.config({ - displayFilename: true, displayTimestamp: true }); @@ -28,11 +27,13 @@ async function generateMarkdownReport(clBinary: string) { const totalsMarkdown = await getExecOutput(clBinary, ['report', '--format', 'markdown']); const unitsMarkdown = await getExecOutput(clBinary, ['findings', '--format', 'markdown']); let result = ''; - result += '## Codebase totals\n'; - result += totalsMarkdown.stdout; + result += '## CodeLimit Report\n'; result += '\n'; - result += '## Refactoring report\n'; + result += totalsMarkdown.stdout; + result += '### Findings\n'; result += unitsMarkdown.stdout; + result += '\n'; + result += 'Generated by [CodeLimit](https://getcodelimit.github.io)\n'; return result; }