Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add API to update a branch #35368

Open
Open
Labels
topic/apiConcerns mainly the API type/proposalThe new feature has not been accepted yet but needs to be discussed first.
@hramrach

Description

Feature Description

The docs show:

get List a repository's branches
post Create a branch
get Retrieve a specific branch from a repository, including its effective branch protection
del Delete a specific branch from a repository
patch Update a branch

but update documentation shows:

Update a branch

Authorizations:
BasicAuthTokenAccessTokenAuthorizationHeaderTokenSudoParamSudoHeaderTOTPHeader
path Parameters

owner required | string owner of the repo

repo required | string name of the repo

branch required | string name of the branch

Request Body schema: application/json
name required | string unique New branch name

Is this meant to be "Rename a branch"?

There does not seem to be any way to update the branch. The more general feature #11835 seems stalled.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/apiConcerns mainly the API type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /