(body)
| 170 | } |
| 171 | |
| 172 | post(body) { |
| 173 | return this.getIssue() |
| 174 | .then(issue => http.post(issue.comments_url, { body }, '')) |
| 175 | .then(data => { |
| 176 | this.state.meta.comments++ |
| 177 | const pageCount = Math.ceil(this.state.meta.comments / this.perPage) |
| 178 | if (this.state.currentPage === pageCount) { |
| 179 | this.state.comments.push(data) |
| 180 | } |
| 181 | return data |
| 182 | }) |
| 183 | } |
| 184 | |
| 185 | loadMeta() { |
| 186 | const { id, owner, repo } = this |
no test coverage detected