Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
vadimkantorov opened this issue Mar 10, 2025 · 1 comment
Open
1 task done
Labels
Status: Triage This is being looked at and prioritized Type: Feature New feature or request

Comments

@vadimkantorov
Copy link

vadimkantorov commented Mar 10, 2025

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
@vadimkantorov vadimkantorov added Status: Triage This is being looked at and prioritized Type: Feature New feature or request labels Mar 10, 2025
Copy link

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@vadimkantorov vadimkantorov changed the title [FEAT]: Plugin for porcelain rename/delete ops [FEAT]: Plugin / API for porcelain rename/delete ops Mar 10, 2025
@vadimkantorov vadimkantorov changed the title [FEAT]: Plugin / API for porcelain rename/delete ops [FEAT]: Plugin / API for high-level / porcelain rename / delete ops Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage This is being looked at and prioritized Type: Feature New feature or request
Projects
Status: 🆕 Triage
Development

No branches or pull requests

1 participant