Skip to content

the rest-API call ListBranches does not grab the protection_url field of branches #3617

Closed
@TheResplandor

Description

@TheResplandor

Using Client.Repositories.ListBranches does not get the branch's "protection_url" field (the Branch struct doesnt even have that field).
As can be seen in the documentation, the List Branches call returns a protection_url field:
https://docs.github.com/en/rest/branches/branches?apiVersion=2022-11-28#list-branches
Also just calling the endpoint demonstrates that.

I already created a simple fix and am about to open the PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions