(markdown: string)
| 55 | enableReactions(!!user); |
| 56 | |
| 57 | const submit = async (markdown: string) => { |
| 58 | await assertOrigin(); |
| 59 | if (!issue) { |
| 60 | issue = await createIssue( |
| 61 | page.issueTerm as string, |
| 62 | page.url, |
| 63 | page.title, |
| 64 | page.description || '', |
| 65 | page.label |
| 66 | ); |
| 67 | timeline.setIssue(issue); |
| 68 | } |
| 69 | const comment = await postComment(issue.number, markdown); |
| 70 | timeline.insertComment(comment, true); |
| 71 | newCommentComponent.clear(); |
| 72 | }; |
| 73 | |
| 74 | const newCommentComponent = new NewCommentComponent(user, submit); |
| 75 | timeline.element.appendChild(newCommentComponent.element); |
nothing calls this directly
no test coverage detected