MCPcopy Index your code
hub / github.com/utterance/utterances / submit

Function submit

src/utterances.ts:57–72  ·  view source on GitHub ↗
(markdown: string)

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 6

createIssueFunction · 0.90
postCommentFunction · 0.90
assertOriginFunction · 0.85
setIssueMethod · 0.80
insertCommentMethod · 0.80
clearMethod · 0.80

Tested by

no test coverage detected