From b87bf344eae5ec0433328362199c572348f4149b Mon Sep 17 00:00:00 2001 From: Tiago Santos Date: Tue, 19 Sep 2023 21:22:45 +0100 Subject: [PATCH] feat: improve tool name on PR comment header (#13) --- CHANGELOG.md | 9 ++++++++- dist/index.js | 4 ++-- src/report/blackduck-report-generator.ts | 4 ++-- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 44a92f1..4c106b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.4.1] - 2023-09-19 + +### Changed + +- Improve tool name on PR comment header + ## [1.4.0] - 2023-09-19 ### Added @@ -57,7 +63,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Improve logging - Update dependencies and refactor action -[Unreleased]: https://github.com/mercedesbenzio/detect-action/compare/v1.4.0...main +[Unreleased]: https://github.com/mercedesbenzio/detect-action/compare/v1.4.1...main +[1.4.1]: https://github.com/mercedesbenzio/detect-action/compare/v1.4.0...v1.4.1 [1.4.0]: https://github.com/mercedesbenzio/detect-action/compare/v1.3.0...v1.4.0 [1.3.0]: https://github.com/mercedesbenzio/detect-action/compare/v1.2.0...v1.3.0 [1.2.0]: https://github.com/mercedesbenzio/detect-action/compare/v1.1.0...v1.2.0 diff --git a/dist/index.js b/dist/index.js index eefc90c..4b8745c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -26317,8 +26317,8 @@ exports.BlackDuckReportGenerator = void 0; const text_builder_1 = __nccwpck_require__(8758); const HEADER = '| Policies Violated | Dependency | License(s) | Vulnerabilities | Short Term Recommended Upgrade | Long Term Recommended Upgrade |'; const HEADER_ALIGNMENT = '|-|-|-|-|-|-|'; -const SUCCESS_COMMENT = '# :white_check_mark: BlackDuck - None of your dependencies violate policy!'; -const FAIL_COMMENT = (fail) => `# ${fail ? ':x:' : ':warning:'} BlackDuck - Found dependencies violating policy!`; +const SUCCESS_COMMENT = '# :white_check_mark: Black Duck - None of your dependencies violate policy!'; +const FAIL_COMMENT = (fail) => `# ${fail ? ':x:' : ':warning:'} Black Duck - Found dependencies violating policy!`; class BlackDuckReportGenerator { blackDuckScanReportGenerator; constructor(blackDuckScanReportGenerator) { diff --git a/src/report/blackduck-report-generator.ts b/src/report/blackduck-report-generator.ts index 1536574..83ce105 100644 --- a/src/report/blackduck-report-generator.ts +++ b/src/report/blackduck-report-generator.ts @@ -16,11 +16,11 @@ const HEADER = const HEADER_ALIGNMENT = '|-|-|-|-|-|-|' const SUCCESS_COMMENT = - '# :white_check_mark: BlackDuck - None of your dependencies violate policy!' + '# :white_check_mark: Black Duck - None of your dependencies violate policy!' const FAIL_COMMENT = (fail: boolean): string => `# ${ fail ? ':x:' : ':warning:' - } BlackDuck - Found dependencies violating policy!` + } Black Duck - Found dependencies violating policy!` export class BlackDuckReportGenerator implements ReportGenerator