Skip to content

Add API to update a branch #35368

@hramrach

Description

@hramrach

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 APItype/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