(issue, body)
| 24 | } |
| 25 | |
| 26 | async createComment(issue, body) { |
| 27 | return (await this.axios.post(`/issues/${issue}/comments`, {body})).data; |
| 28 | } |
| 29 | |
| 30 | async getComments(issue, {desc = false, per_page= 100, page = 1} = {}) { |
| 31 | return (await this.axios.get(`/issues/${issue}/comments`, {params: {direction: desc ? 'desc' : 'asc', per_page, page}})).data; |