(
key: IntegrationTaskKey,
params: {
owner: string;
repo: string;
content: string;
encoding?: Endcoding;
}
)
| 37 | constructor(private runTask: GitHubRunTask) {} |
| 38 | |
| 39 | createBlob( |
| 40 | key: IntegrationTaskKey, |
| 41 | params: { |
| 42 | owner: string; |
| 43 | repo: string; |
| 44 | content: string; |
| 45 | encoding?: Endcoding; |
| 46 | } |
| 47 | ): GitHubReturnType<Octokit["rest"]["git"]["createBlob"]> { |
| 48 | return this.runTask( |
| 49 | key, |
| 50 | async (client, task) => { |
| 51 | const result = await client.rest.git.createBlob({ |
| 52 | owner: params.owner, |
| 53 | repo: params.repo, |
| 54 | content: params.content, |
| 55 | encoding: params.encoding, |
| 56 | }); |
| 57 | return result.data; |
| 58 | }, |
| 59 | { |
| 60 | name: "Create Blob", |
| 61 | params, |
| 62 | properties: [ |
| 63 | ...repoProperties(params), |
| 64 | { |
| 65 | label: "Content", |
| 66 | text: params.content, |
| 67 | }, |
| 68 | ], |
| 69 | }, |
| 70 | onError |
| 71 | ); |
| 72 | } |
| 73 | |
| 74 | getBlob( |
| 75 | key: IntegrationTaskKey, |
nothing calls this directly
no test coverage detected