({
owner,
repository,
comment_id,
githubId,
}: CommentExists)
| 108 | githubId: string; |
| 109 | } |
| 110 | export const issueCommentExists = async ({ |
| 111 | owner, |
| 112 | repository, |
| 113 | comment_id, |
| 114 | githubId, |
| 115 | }: CommentExists) => { |
| 116 | const github = await findGithubById(githubId); |
| 117 | const octokit = authGithub(github); |
| 118 | try { |
| 119 | await octokit.rest.issues.getComment({ |
| 120 | owner: owner || "", |
| 121 | repo: repository || "", |
| 122 | comment_id: comment_id, |
| 123 | }); |
| 124 | return true; |
| 125 | } catch { |
| 126 | return false; |
| 127 | } |
| 128 | }; |
| 129 | interface Comment { |
| 130 | owner: string; |
| 131 | repository: string; |
no test coverage detected