Skip to content

Commit f3494ba

Browse files
committed
Use diff to build coverage
1 parent 506f94b commit f3494ba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22881,7 +22881,7 @@ function uncovered(file, options) {
2288122881
.join(", ")
2288222882
}
2288322883

22884-
function comment$1 (lcov, options) {
22884+
function comment (lcov, options) {
2288522885
return fragment(
2288622886
`Coverage after merging ${b(options.head)} into ${b(options.base)}`,
2288722887
table(tbody(tr(th(percentage(lcov).toFixed(2), "%")))),
@@ -22892,7 +22892,7 @@ function comment$1 (lcov, options) {
2289222892

2289322893
function diff(lcov, before, options) {
2289422894
if (!before) {
22895-
return comment$1(lcov, options)
22895+
return comment(lcov, options)
2289622896
}
2289722897

2289822898
const pbefore = percentage(before);
@@ -22949,7 +22949,7 @@ async function main$1() {
2294922949
repo: github_1.repo.repo,
2295022950
owner: github_1.repo.owner,
2295122951
issue_number: github_1.payload.pull_request.number,
22952-
body: comment(lcov, options),
22952+
body: diff(lcov, baselcov, options),
2295322953
});
2295422954
}
2295522955

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async function main() {
3737
repo: context.repo.repo,
3838
owner: context.repo.owner,
3939
issue_number: context.payload.pull_request.number,
40-
body: comment(lcov, options),
40+
body: diff(lcov, baselcov, options),
4141
})
4242
}
4343

0 commit comments

Comments
 (0)