Skip to content

[FEAT]: Plugin / API for high-level / porcelain rename / delete ops #2826

@vadimkantorov

Description

@vadimkantorov

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

No one assigned

    Labels

    Status: TriageThis is being looked at and prioritizedType: FeatureNew feature or request

    Type

    No type

    Projects

    Status

    🔥 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions