Skip to content

Commit

Permalink
Custom GitHub token (#98)
Browse files Browse the repository at this point in the history
* Feat: custom comment author (#96)

* feat: commentAuthor property

* update: readme

* Revert "update: readme"

This reverts commit 722e4af.

* Revert "feat: commentAuthor property"

This reverts commit f9bbf6f.

* fix: pull request issues

* build

* changelog

* 1.0.27

---------

Co-authored-by: Luiza Prestes <[email protected]>
  • Loading branch information
MishaKav and mluizaa00 authored Sep 18, 2024
1 parent 434e6d2 commit d742388
Show file tree
Hide file tree
Showing 7 changed files with 31,442 additions and 10,080 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog of the Jest Coverage Comment

## [Jest Coverage Comment 1.0.27](https://github.com/MishaKav/jest-coverage-comment/tree/v1.0.27)

**Release Date:** 2024-09-18

#### Changes

- Fix use cases when comment post by not `github-actions[bot]` and not updated, thanks to [@mluizaa00](https://github.com/mluizaa00) for contribution

## [Jest Coverage Comment 1.0.26](https://github.com/MishaKav/jest-coverage-comment/tree/v1.0.26)

**Release Date:** 2024-04-30
Expand Down
41,348 changes: 31,381 additions & 9,967 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

152 changes: 47 additions & 105 deletions dist/licenses.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jest-coverage-comment",
"version": "1.0.26",
"version": "1.0.27",
"description": "Comments a pull request or commit with the jest code coverage badge, full report and tests summary",
"author": "Misha Kav <[email protected]>",
"license": "MIT",
Expand Down
6 changes: 2 additions & 4 deletions src/create-comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,8 @@ export async function createComment(
issue_number,
})

const comment = comments.find(
(c) =>
c.user?.login === 'github-actions[bot]' &&
c.body?.startsWith(options.watermark)
const comment = comments.find((c) =>
c.body?.startsWith(options.watermark)
)

if (comment) {
Expand Down

0 comments on commit d742388

Please sign in to comment.