Api for branch rename #10131

Closed
opened 2025-11-02 08:59:01 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @yatinappsmith on GitHub (Jan 19, 2023).

Feature Description

It would be helpful if you provided API support for renaming a branch similar to

curl \
  -X POST \
  -H "Accept: application/vnd.github+json" \
  -H "Authorization: Bearer <YOUR-TOKEN>"\
  -H "X-GitHub-Api-Version: 2022-11-28" \
  https://api.github.com/repos/OWNER/REPO/branches/BRANCH/rename \
  -d '{"new_name":"my_renamed_branch"}'

Screenshots

No response

Originally created by @yatinappsmith on GitHub (Jan 19, 2023). ### Feature Description It would be helpful if you provided API support for renaming a branch similar to ``` curl \ -X POST \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>"\ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/OWNER/REPO/branches/BRANCH/rename \ -d '{"new_name":"my_renamed_branch"}' ``` ### Screenshots _No response_
GiteaMirror added the topic/apitype/proposaltype/featuremodifies/api labels 2025-11-02 08:59:01 -06:00
Author
Owner

@sillyguodong commented on GitHub (Feb 21, 2023):

okey, I will implement this API~

@sillyguodong commented on GitHub (Feb 21, 2023): okey, I will implement this API~
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10131