Skip to content

[Schema Inaccuracy] Missing allow_update_branch property on POST /user/repos #5857

@jessestricker

Description

@jessestricker

Schema Inaccuracy

The POST /user/repos endpoint does not list the property allow_update_branch in the request body, however it can be used to set this repository setting on creation.

The allow_update_branch request body property can be seen in the PATCH /repos/{owner}/{repo} endpoint.

Expected

The allow_update_branch property should be listed in the request body of POST /user/repos.

Reproduction Steps

Create two repositories and print the value of allow_update_branch of the created repositories:

$ gh api -X POST /user/repos -f name=test_allow_update_branch_1 -f allow_update_branch=true -q .allow_update_branch
true
$ gh api -X POST /user/repos -f name=test_allow_update_branch_2 -f allow_update_branch=false -q .allow_update_branch
false

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions