-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Add API endpoints to tinker with git references #11835
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
Comments
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions. |
This issue has been automatically closed because of inactivity. You can re-open it if needed. |
Seems to be the same as #16208 Github doesn't even have a create branch API endpoint like Gitea has, but just relies on a covers-all create reference API end point: https://docs.github.com/en/rest/git/refs#create-a-reference This and the update reference are needed. |
Currently still working on this. Writing unit tests. |
GitHub does have some API endpoints to create, update, or get references: https://developer.github.com/v3/git/refs/
These endpoints can be useful for users to recreate some git "plumbing" functionalities over the Gitea API. With these endpoints, users could reset branches for example.
More generally, GitHub has a "Git Database API" which works at a lower level and allows user to do almost anything, but that might be a bigger project: https://developer.github.com/v3/git/
The text was updated successfully, but these errors were encountered: