Skip to content

Commit

Permalink
Feat: custom comment author (#96)
Browse files Browse the repository at this point in the history
* feat: commentAuthor property

* update: readme

* Revert "update: readme"

This reverts commit 722e4af.

* Revert "feat: commentAuthor property"

This reverts commit f9bbf6f.

* fix: pull request issues
  • Loading branch information
mluizaa00 authored Sep 18, 2024
1 parent 434e6d2 commit a4d74a5
Showing 1 changed file with 2 additions and 4 deletions.
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 a4d74a5

Please sign in to comment.