Skip to content

Add option to force update when posting to /contents and new_branch already exists #35538

@robgonnella

Description

@robgonnella

Feature Description

I am currently posting to /api/v1/repos/{owner}/{repo}/contents to update multiple files at once for a new branch; however, this call fails if new_branch already exists. I would love to have an option that would allow the branch to be force updated if it already exists.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions