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

Method loadMeta

src/gitment.js:185–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

183 }
184
185 loadMeta() {
186 const { id, owner, repo } = this
187 return http.get(`/repos/${owner}/${repo}/issues`, {
188 creator: owner,
189 labels: id,
190 })
191 .then(issues => {
192 if (!issues.length) return Promise.reject(NOT_INITIALIZED_ERROR)
193 this.state.meta = issues[0]
194 return issues[0]
195 })
196 }
197
198 loadComments(page = this.state.currentPage) {
199 return this.getIssue()

Callers 2

updateMethod · 0.95
getIssueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected