(opts = {})
| 107 | } |
| 108 | |
| 109 | async commitCommentCreate(opts = {}) { |
| 110 | const { report: body, commitSha } = opts; |
| 111 | const { repos } = octokit(this.token, this.repo); |
| 112 | |
| 113 | return ( |
| 114 | await repos.createCommitComment({ |
| 115 | ...ownerRepo({ uri: this.repo }), |
| 116 | commit_sha: commitSha, |
| 117 | body |
| 118 | }) |
| 119 | ).data.html_url; |
| 120 | } |
| 121 | |
| 122 | async commitCommentUpdate(opts = {}) { |
| 123 | const { report: body, id } = opts; |