MCPcopy
hub / github.com/imsun/gitment / loadReactions

Method loadReactions

src/gitment.js:221–236  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

219 }
220
221 loadReactions() {
222 if (!this.accessToken) {
223 this.state.reactions = []
224 return Promise.resolve([])
225 }
226
227 return this.getIssue()
228 .then((issue) => {
229 if (!issue.reactions.total_count) return []
230 return http.get(issue.reactions.url, {}, '')
231 })
232 .then((reactions) => {
233 this.state.reactions = reactions
234 return reactions
235 })
236 }
237
238 loadCommentReactions() {
239 if (!this.accessToken) {

Callers 1

updateMethod · 0.95

Calls 1

getIssueMethod · 0.95

Tested by

no test coverage detected