- createOrUpdate(
options: CreateOrUpdateOptions,
): Promise<
| {
error: {
error_description: any;
status_code: number;
status_text: string;
};
value?: undefined;
}
| {
error?: undefined;
value: {
body: any;
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: any;
status_code: number;
status_text: string;
summary: string;
};
},
>
Creates a new file or replaces an existing file in a repository.
See
https://docs.github.com/en/rest/repos/contents?apiVersion=2022-11-28#create-or-update-file-contents