From 830b076a9dfa4648a08117599e180f6a05baa755 Mon Sep 17 00:00:00 2001 From: Tiago Santos Date: Tue, 19 Sep 2023 20:55:40 +0100 Subject: [PATCH] feat: add tool name to PR comment header --- CHANGELOG.md | 9 ++++++++- src/report/blackduck-report-generator.ts | 6 ++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b66545..44a92f1 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.0] - 2023-09-19 + +### Added + +- Add tool name to PR comment header + ## [1.3.0] - 2023-09-19 ### Added @@ -51,7 +57,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.3.0...main +[Unreleased]: https://github.com/mercedesbenzio/detect-action/compare/v1.4.0...main +[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 [1.1.0]: https://github.com/mercedesbenzio/detect-action/compare/v1.0.0...v1.1.0 diff --git a/src/report/blackduck-report-generator.ts b/src/report/blackduck-report-generator.ts index 6d2f674..1536574 100644 --- a/src/report/blackduck-report-generator.ts +++ b/src/report/blackduck-report-generator.ts @@ -16,9 +16,11 @@ const HEADER = const HEADER_ALIGNMENT = '|-|-|-|-|-|-|' const SUCCESS_COMMENT = - '# :white_check_mark: None of your dependencies violate policy!' + '# :white_check_mark: BlackDuck - None of your dependencies violate policy!' const FAIL_COMMENT = (fail: boolean): string => - `# ${fail ? ':x:' : ':warning:'} Found dependencies violating policy!` + `# ${ + fail ? ':x:' : ':warning:' + } BlackDuck - Found dependencies violating policy!` export class BlackDuckReportGenerator implements ReportGenerator