Skip to content

New/Update-GitHubRepository: Add Support for delete_branch_on_merge API Property #189

Closed
@X-Guardian

Description

@X-Guardian

Description

The GitHub Create/Update Repository APIs have a delete_branch_on_merge property which is not currently supported by the New-GitHubRepository and Update-GitHubRepository functions. This allows automatically deleting of head branches when pull requests are merged within the repo.

Proposal

Add a DeleteBranchOnMerge switch parameter to both functions to add support for this feature.

API Detail

delete_branch_on_merge | boolean | Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. Default: `false`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    api completenessThis is basic API functionality that hasn't been implemented yet.api-repositoriesWork to complete the API's defined here: https://developer.github.com/v3/repos/help wantedAnyone in the community is welcome to do this workup for grabsAnyone in the community is welcome to do this work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions