(opts = {})
| 90 | } |
| 91 | |
| 92 | async commitComments(opts = {}) { |
| 93 | const { commitSha } = opts; |
| 94 | |
| 95 | const projectPath = await this.projectPath(); |
| 96 | const endpoint = `/projects/${projectPath}/repository/commits/${commitSha}/comments`; |
| 97 | |
| 98 | const comments = await this.request({ endpoint, method: 'GET' }); |
| 99 | |
| 100 | return comments.map(({ id, note: body }) => { |
| 101 | return { id, body }; |
| 102 | }); |
| 103 | } |
| 104 | |
| 105 | async commitPrs(opts = {}) { |
| 106 | const { commitSha } = opts; |
nothing calls this directly
no test coverage detected