Skip to content

[FEAT]: Add support for setting the branch protection option "Require approval of the most recent reviewable push" #2837

@ChrisAnn

Description

@ChrisAnn

Describe the need

The branch protection option "Require approval of the most recent reviewable push" was announced in October 2022.

Screenshot 2023-12-20 at 16 54 19

It's available in the API as require_last_push_approval : https://docs.github.com/en/rest/branches/branch-protection?apiVersion=2022-11-28#update-pull-request-review-protection

It would be great if Octokit could support this option when working with branch protection.

SDK Version

No response

API Version

2022-11-28

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is being looked at and prioritizedType: FeatureNew feature or request

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions