(
path: string,
sha?: string | null,
{
branch = this.branch,
repoURL = this.repoURL,
parseText = true,
}: {
branch?: string;
repoURL?: string;
parseText?: boolean;
} = {},
)
| 671 | } |
| 672 | |
| 673 | async readFile( |
| 674 | path: string, |
| 675 | sha?: string | null, |
| 676 | { |
| 677 | branch = this.branch, |
| 678 | repoURL = this.repoURL, |
| 679 | parseText = true, |
| 680 | }: { |
| 681 | branch?: string; |
| 682 | repoURL?: string; |
| 683 | parseText?: boolean; |
| 684 | } = {}, |
| 685 | ) { |
| 686 | if (!sha) { |
| 687 | sha = await this.getFileSha(path, { repoURL, branch }); |
| 688 | } |
| 689 | const content = await this.fetchBlobContent({ sha: sha as string, repoURL, parseText }); |
| 690 | return content; |
| 691 | } |
| 692 | |
| 693 | async readFileMetadata(path: string, sha: string | null | undefined) { |
| 694 | const fetchFileMetadata = async () => { |
nothing calls this directly
no test coverage detected