push
github
45 of 56 branches covered (80.36%)
Branch coverage included in aggregate %.
104 of 129 new or added lines in 6 files covered. (80.62%)
10 existing lines in 2 files now uncovered.318 of 590 relevant lines covered (53.9%)
2.7 hits per line
|
NEW
|
import { pipe } from 'effect';
|
|
| 2 |
import { ParseToReadableStream } from 'src/parseToReadableStream.js';
|
|
| 3 |
import { Repo } from '../repo.interface.js';
|
|
| 4 |
import { requestRepoPathContentsFromGitHubAPI } from './requestRepoPathContentsFromGitHubAPI.js';
|
|
| 5 |
|
|
|
NEW
|
export const requestRawRepoPathContentsFromGitHubAPI = ({ |
× |
|
NEW
|
repo, |
× |
|
NEW
|
gitRef, |
× |
|
NEW
|
path |
× |
|
NEW
|
}: {
|
× |
| 11 |
repo: Repo,
|
|
| 12 |
path: string,
|
|
| 13 |
gitRef?: string | undefined,
|
|
|
NEW
|
}) => pipe( |
× |
|
NEW
|
requestRepoPathContentsFromGitHubAPI({
|
× |
|
NEW
|
repo, |
× |
|
NEW
|
gitRef, |
× |
|
NEW
|
format: "raw",
|
× |
|
NEW
|
streamBody: true,
|
× |
|
NEW
|
path |
× |
|
NEW
|
}), |
× |
|
NEW
|
ParseToReadableStream |
× |
|
NEW
|
); |
× |