(path: string, branch: string)
| 736 | } |
| 737 | |
| 738 | async getFileId(path: string, branch: string) { |
| 739 | const request = await this.request({ |
| 740 | method: 'HEAD', |
| 741 | url: `${this.repoURL}/repository/files/${encodeURIComponent(path)}`, |
| 742 | params: { ref: branch }, |
| 743 | }); |
| 744 | |
| 745 | const blobId = request.headers.get('X-Gitlab-Blob-Id') as string; |
| 746 | return blobId; |
| 747 | } |
| 748 | |
| 749 | async isFileExists(path: string, branch: string) { |
| 750 | const fileExists = await this.requestText({ |
no test coverage detected