Skip to content

Add fields to get branch protection API to match GitHub APIs #2719

@annadorottya

Description

@annadorottya

Upon comparing the API response of the get branch protection endpoint and the struct implemented here I noticed a few fields missing:

  • required_pull_request_reviews.url string
  • required_signatures.enabled boolean
  • required_signature.url string
  • required_status_checks.contexts []string
  • required_status_checks.contexts_url string
  • required_status_checks.url string
  • url string

Not sure if the url types of fields are left out on purpose but there are some cases when they are implemented (eg. enforce_admins.url) so I included them.

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