mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2026-04-14 01:56:52 +00:00
๐ use warning
This commit is contained in:
parent
a59ab1c422
commit
a57b4690ec
4 changed files with 4 additions and 7 deletions
|
|
@ -45,12 +45,11 @@ 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
|
||||
core.debug(viewer.login)
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
||||
const repository = data.repository as Repository
|
||||
core.debug(JSON.stringify(repository))
|
||||
const target = repository.pullRequest?.comments?.nodes?.find(
|
||||
(node: IssueComment | null | undefined) =>
|
||||
node?.author?.login === viewer.login &&
|
||||
|
|
|
|||
Loadingโฆ
Add table
Add a link
Reference in a new issue