(opts = {})
| 133 | } |
| 134 | |
| 135 | async commitComments(opts = {}) { |
| 136 | const { commitSha } = opts; |
| 137 | const { repos, paginate } = octokit(this.token, this.repo); |
| 138 | |
| 139 | return ( |
| 140 | await paginate(repos.listCommentsForCommit, { |
| 141 | ...ownerRepo({ uri: this.repo }), |
| 142 | commit_sha: commitSha |
| 143 | }) |
| 144 | ).map(({ id, body }) => { |
| 145 | return { id, body }; |
| 146 | }); |
| 147 | } |
| 148 | |
| 149 | async commitPrs(opts = {}) { |
| 150 | const { commitSha, state = 'open' } = opts; |