(number: number)
| 617 | } |
| 618 | |
| 619 | async getPullRequestCommits(number: number) { |
| 620 | if (number === MOCK_PULL_REQUEST) { |
| 621 | return []; |
| 622 | } |
| 623 | try { |
| 624 | const commits: Endpoints['GET /repos/{owner}/{repo}/pulls/{pull_number}/commits']['response']['data'] = |
| 625 | await this.request(`${this.originRepoURL}/pulls/${number}/commits`); |
| 626 | return commits; |
| 627 | } catch (e) { |
| 628 | console.log(e); |
| 629 | return []; |
| 630 | } |
| 631 | } |
| 632 | |
| 633 | async getPullRequestAuthor(pullRequest: GitHubPull) { |
| 634 | if (!pullRequest.user?.login) { |