@@ -2031,6 +2031,7 @@ function run() {
20312031 const githubToken = core . getInput ( 'accessToken' ) ;
20322032 const fullCoverage = JSON . parse ( core . getInput ( 'fullCoverageDiff' ) ) ;
20332033 const commandToRun = core . getInput ( 'runCommand' ) ;
2034+ const additionalCommentInfo = core . getInput ( 'additionalCommentInfo' ) ;
20342035 const delta = Number ( core . getInput ( 'delta' ) ) ;
20352036 const rawTotalDelta = core . getInput ( 'total_delta' ) ;
20362037 const mainBranchCoverageSummaryFileName = core . getInput ( 'mainBranchCoverageSummaryFileName' ) ;
@@ -2052,9 +2053,7 @@ function run() {
20522053 const currentDirectory = child_process_1 . execSync ( 'pwd' )
20532054 . toString ( )
20542055 . trim ( ) ;
2055- console . log ( '>>>>>> START DIFF CHECK' ) ;
20562056 const diffChecker = new DiffChecker_1 . DiffChecker ( codeCoverageNew , codeCoverageOld ) ;
2057- console . log ( '>>>>>> END DIFF CHECK' ) ;
20582057 let messageToPost = `## Test coverage results :test_tube: \n
20592058 Code coverage diff between base branch:${ branchNameBase } and head branch: ${ branchNameHead } \n\n` ;
20602059 const coverageDetails = diffChecker . getCoverageDetails ( ! fullCoverage , `${ currentDirectory } /` ) ;
@@ -2079,6 +2078,9 @@ function run() {
20792078 }
20802079 messageToPost = `Current PR reduces the test coverage percentage by ${ delta } for some tests` ;
20812080 messageToPost = `${ deltaCommentIdentifier } \nCommit SHA:${ commitSha } \n${ messageToPost } ` ;
2081+ if ( additionalCommentInfo ) {
2082+ messageToPost = `${ messageToPost } \n${ additionalCommentInfo } ` ;
2083+ }
20822084 yield createOrUpdateComment ( commentId , githubClient , repoOwner , repoName , messageToPost , prNumber ) ;
20832085 throw Error ( messageToPost ) ;
20842086 }
0 commit comments