-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Describe the need
- Renaming a file / directory (analogue for
git mv ...
) - Deleting a directory (analogue for
git rm ...
)
These are currently not available in GitHub API, but possible via raw octokit gitdata interface (some attempts in https://stackoverflow.com/questions/31563444/rename-a-file-with-github-api). It would be great to have an official Octokit plugin for such high-level ops/shortcuts with reliable/tested implementations.
Currently there already exists a high-level plugin for a text variant of https://octokit.github.io/rest.js/v21/#repos-create-or-update-file-contents : https://github.com/octokit/plugin-create-or-update-text-file.js/
I think more complex ops such as renaming/deleting a file/dir would be awesome as an official plugin...
These are very useful for any editors using GitHub repo as a small file storage / remote FS - frequent usecase for static blogs
SDK Version
No response
API Version
No response
Relevant log output
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
Type
Projects
Status