@@ -18,6 +18,9 @@ async function run(): Promise<void> {
18
18
const commandToRun = core . getInput ( 'runCommand' )
19
19
const delta = Number ( core . getInput ( 'delta' ) )
20
20
const rawTotalDelta = core . getInput ( 'total_delta' )
21
+ const mainBranchCoverageSummaryFileName = core . getInput (
22
+ 'mainBranchCoverageSummaryFileName'
23
+ )
21
24
const githubClient = github . getOctokit ( githubToken )
22
25
const prNumber = github . context . issue . number
23
26
const branchNameBase = github . context . payload . pull_request ?. base . ref
@@ -37,22 +40,21 @@ async function run(): Promise<void> {
37
40
const codeCoverageNew = < CoverageReport > (
38
41
JSON . parse ( fs . readFileSync ( 'coverage-summary.json' ) . toString ( ) )
39
42
)
40
- // execSync('/usr/bin/git fetch')
41
- // execSync('/usr/bin/git stash')
42
- // execSync(`/usr/bin/git checkout --progress --force ${branchNameBase}`)
43
43
44
44
const codeCoverageOld = < CoverageReport > (
45
- JSON . parse ( fs . readFileSync ( 'develop-coverage-summary.json' ) . toString ( ) )
45
+ JSON . parse ( fs . readFileSync ( mainBranchCoverageSummaryFileName ) . toString ( ) )
46
46
)
47
47
48
48
const currentDirectory = execSync ( 'pwd' )
49
49
. toString ( )
50
50
. trim ( )
51
-
51
+ console . log ( '>>>>>> START DIFF CHECK' )
52
52
const diffChecker : DiffChecker = new DiffChecker (
53
53
codeCoverageNew ,
54
54
codeCoverageOld
55
55
)
56
+ console . log ( '>>>>>> END DIFF CHECK' )
57
+
56
58
let messageToPost = `## Test coverage results :test_tube: \n
57
59
Code coverage diff between base branch:${ branchNameBase } and head branch: ${ branchNameHead } \n\n`
58
60
const coverageDetails = diffChecker . getCoverageDetails (
0 commit comments