(id: number)
| 550 | } |
| 551 | |
| 552 | async getPullRequestLabel(id: number) { |
| 553 | const comments = await this.requestAllValues<BitBucketPullComment>({ |
| 554 | url: `${this.repoURL}/pullrequests/${id}/comments`, |
| 555 | params: { |
| 556 | pagelen: 100, |
| 557 | }, |
| 558 | }); |
| 559 | // Comments come oldest first, so the current label is the last one |
| 560 | return comments[comments.length - 1]?.content.raw; |
| 561 | } |
| 562 | |
| 563 | async createPullRequest(branch: string, commitMessage: string, status: string) { |
| 564 | const pullRequest: BitBucketPullRequest = await this.requestJSON({ |
no outgoing calls
no test coverage detected