(id: number)
| 553 | } |
| 554 | |
| 555 | async getPullRequestLabel(id: number) { |
| 556 | const comments: BitBucketPullComments = await this.requestJSON({ |
| 557 | url: `${this.repoURL}/pullrequests/${id}/comments`, |
| 558 | params: { |
| 559 | pagelen: 100, |
| 560 | }, |
| 561 | }); |
| 562 | return comments.values.map(c => c.content.raw)[comments.values.length - 1]; |
| 563 | } |
| 564 | |
| 565 | async createPullRequest(branch: string, commitMessage: string, status: string) { |
| 566 | const pullRequest: BitBucketPullRequest = await this.requestJSON({ |
no test coverage detected