A GitHubRepository model that identifies the repository file will be upserted.
The file or folder to be upserted.
The absolute path that locates the file in the repository. If a folder is to be upserted, then the path indicates the root directory where the folder will be inserted.
A GithubFile model that identifies the file within GitHub API, or a Response instance if the fetch/upsert request failed.
Generated using TypeDoc
Upserts a file or folder on a GitHub repository using GitHub HTTP API. This function performs two HTTP requests:
Note: If a folder is to be upserted, the number of requests is multiplied by the number of files and child folders!