Skip to content

Add API endpoints to tinker with git references #11835

Open
@tle-huu

Description

@tle-huu

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/

Metadata

Metadata

Assignees

Labels

issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedmodifies/apiThis PR adds API routes or modifies them

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions