- get(
options: GetOptions,
): Promise<
| {
error: {
error_description: any;
status_code: number;
status_text: string;
};
value?: undefined;
}
| {
error?: undefined;
value: {
body: GetResponseBody;
status_code: number;
status_text: string;
summary: string;
};
},
> Returns Promise<
| {
error: {
error_description: any;
status_code: number;
status_text: string;
};
value?: undefined;
}
| {
error?: undefined;
value: {
body: GetResponseBody;
status_code: number;
status_text: string;
summary: string;
};
},
>
Gets the contents of a file or directory in a repository.
See
https://docs.github.com/en/rest/repos/contents?apiVersion=2022-11-28#get-repository-content