(number: number)
| 592 | } |
| 593 | |
| 594 | async getPullRequestCommits(number: number) { |
| 595 | if (number === MOCK_PULL_REQUEST) { |
| 596 | return []; |
| 597 | } |
| 598 | try { |
| 599 | const commits: Endpoints['GET /repos/{owner}/{repo}/pulls/{pull_number}/commits']['response']['data'] = |
| 600 | await this.request(`${this.originRepoURL}/pulls/${number}/commits`); |
| 601 | return commits; |
| 602 | } catch (e) { |
| 603 | console.log(e); |
| 604 | return []; |
| 605 | } |
| 606 | } |
| 607 | |
| 608 | async getPullRequestAuthor(pullRequest: GitHubPull) { |
| 609 | if (!pullRequest.user?.login) { |