()
| 250 | } |
| 251 | |
| 252 | function getReviewCommentContext() { |
| 253 | const context = useContext() |
| 254 | if (context.eventName !== "pull_request_review_comment") { |
| 255 | return null |
| 256 | } |
| 257 | |
| 258 | const payload = context.payload as PullRequestReviewCommentEvent |
| 259 | return { |
| 260 | file: payload.comment.path, |
| 261 | diffHunk: payload.comment.diff_hunk, |
| 262 | line: payload.comment.line, |
| 263 | originalLine: payload.comment.original_line, |
| 264 | position: payload.comment.position, |
| 265 | commitId: payload.comment.commit_id, |
| 266 | originalCommitId: payload.comment.original_commit_id, |
| 267 | } |
| 268 | } |
| 269 | |
| 270 | async function assertOpencodeConnected() { |
| 271 | let retry = 0 |
no test coverage detected