Skip to content

Commit

Permalink
add text coverage to PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Hlamallama committed Oct 16, 2024
1 parent e3afcae commit 5f9c15e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ jobs:
const coverage = process.env.COVERAGE;
const prNumber = context.payload.pull_request.number;
const commentBody = `Test coverage: ${coverage}`;
github.issues.createComment({
issue_number: prNumber,
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: commentBody
});
})

0 comments on commit 5f9c15e

Please sign in to comment.