@@ -2031,6 +2031,7 @@ function run() {
2031
2031
const githubToken = core . getInput ( 'accessToken' ) ;
2032
2032
const fullCoverage = JSON . parse ( core . getInput ( 'fullCoverageDiff' ) ) ;
2033
2033
const commandToRun = core . getInput ( 'runCommand' ) ;
2034
+ const additionalCommentInfo = core . getInput ( 'additionalCommentInfo' ) ;
2034
2035
const delta = Number ( core . getInput ( 'delta' ) ) ;
2035
2036
const rawTotalDelta = core . getInput ( 'total_delta' ) ;
2036
2037
const mainBranchCoverageSummaryFileName = core . getInput ( 'mainBranchCoverageSummaryFileName' ) ;
@@ -2052,9 +2053,7 @@ function run() {
2052
2053
const currentDirectory = child_process_1 . execSync ( 'pwd' )
2053
2054
. toString ( )
2054
2055
. trim ( ) ;
2055
- console . log ( '>>>>>> START DIFF CHECK' ) ;
2056
2056
const diffChecker = new DiffChecker_1 . DiffChecker ( codeCoverageNew , codeCoverageOld ) ;
2057
- console . log ( '>>>>>> END DIFF CHECK' ) ;
2058
2057
let messageToPost = `## Test coverage results :test_tube: \n
2059
2058
Code coverage diff between base branch:${ branchNameBase } and head branch: ${ branchNameHead } \n\n` ;
2060
2059
const coverageDetails = diffChecker . getCoverageDetails ( ! fullCoverage , `${ currentDirectory } /` ) ;
@@ -2079,6 +2078,9 @@ function run() {
2079
2078
}
2080
2079
messageToPost = `Current PR reduces the test coverage percentage by ${ delta } for some tests` ;
2081
2080
messageToPost = `${ deltaCommentIdentifier } \nCommit SHA:${ commitSha } \n${ messageToPost } ` ;
2081
+ if ( additionalCommentInfo ) {
2082
+ messageToPost = `${ messageToPost } \n${ additionalCommentInfo } ` ;
2083
+ }
2082
2084
yield createOrUpdateComment ( commentId , githubClient , repoOwner , repoName , messageToPost , prNumber ) ;
2083
2085
throw Error ( messageToPost ) ;
2084
2086
}
0 commit comments