MCPcopy Create free account
hub / github.com/utterance/utterances / setIssue

Method setIssue

src/timeline-component.ts:42–51  ·  view source on GitHub ↗
(issue: Issue | null)

Source from the content-addressed store, hash-verified

40 }
41
42 public setIssue(issue: Issue | null) {
43 this.issue = issue;
44 if (issue) {
45 this.count = issue.comments;
46 this.countAnchor.href = issue.html_url;
47 this.renderCount();
48 } else {
49 this.countAnchor.removeAttribute('href');
50 }
51 }
52
53 public insertComment(comment: IssueComment, incrementCount: boolean) {
54 const component = new CommentComponent(

Callers 2

constructorMethod · 0.95
submitFunction · 0.80

Calls 1

renderCountMethod · 0.95

Tested by

no test coverage detected