mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2026-04-15 18:45:43 +00:00
๐ fix find issue
This commit is contained in:
parent
a57b4690ec
commit
3c38ed8cd4
5 changed files with 9 additions and 9 deletions
|
|
@ -45,14 +45,13 @@ export async function findPreviousComment(
|
|||
`,
|
||||
{...repo, after, number}
|
||||
)
|
||||
core.warning(JSON.stringify(data))
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
||||
const viewer = data.viewer as User
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
||||
const repository = data.repository as Repository
|
||||
const target = repository.pullRequest?.comments?.nodes?.find(
|
||||
(node: IssueComment | null | undefined) =>
|
||||
node?.author?.login === viewer.login &&
|
||||
node?.author?.login === viewer.login.replace("[bot]", "") &&
|
||||
!node?.isMinimized &&
|
||||
node?.body?.includes(h)
|
||||
)
|
||||
|
|
|
|||
Loadingโฆ
Add table
Add a link
Reference in a new issue