Skip to content

Api for branch rename #22526

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

Closed
yatinappsmith opened this issue Jan 19, 2023 · 1 comment · Fixed by #32433
Closed

Api for branch rename #22526

yatinappsmith opened this issue Jan 19, 2023 · 1 comment · Fixed by #32433
Labels
modifies/api This PR adds API routes or modifies them topic/api Concerns mainly the API type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@yatinappsmith
Copy link

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

@yatinappsmith yatinappsmith added type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first. labels Jan 19, 2023
@a1012112796 a1012112796 added the modifies/api This PR adds API routes or modifies them label Jan 21, 2023
@sillyguodong
Copy link
Contributor

okey, I will implement this API~

@silverwind silverwind added the topic/api Concerns mainly the API label Mar 3, 2024
lunny pushed a commit that referenced this issue Dec 12, 2024
Resolves #22526.

Builds upon #23061.

---------

Co-authored-by: sillyguodong <[email protected]>
Co-authored-by: wxiaoguang <[email protected]>
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Mar 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
modifies/api This PR adds API routes or modifies them topic/api Concerns mainly the API type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants