(path: string, branch: string)
| 745 | } |
| 746 | |
| 747 | async getFileId(path: string, branch: string) { |
| 748 | const request = await this.request({ |
| 749 | method: 'HEAD', |
| 750 | url: `${this.repoURL}/repository/files/${encodeURIComponent(path)}`, |
| 751 | params: { ref: branch }, |
| 752 | }); |
| 753 | |
| 754 | const blobId = request.headers.get('X-Gitlab-Blob-Id') as string; |
| 755 | return blobId; |
| 756 | } |
| 757 | |
| 758 | async isFileExists(path: string, branch: string) { |
| 759 | const fileExists = await this.requestText({ |
no test coverage detected