github-community-projects / github-community-projects/safe-settings

Support require_last_push_approval protected branch setting

Open
#338 0 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
921
Forks
226
Avg merge
18h 3m
Merged PRs (30d)
14

Description

## Prerequisites:

* Is the functionality available in the GitHub UI? If so, please provide a link to information about the feature.

https://github.blog/changelog/2022-10-20-new-branch-protections-last-pusher-and-locked-branch/

* Is the functionality available through the GitHub API? If the functionality is available, please provide links to the
API documentation (https://developer.github.com/v3/) as well as the Octokit documentation (https://octokit.github.io/).

https://docs.github.com/en/rest/branches/branch-protection#update-pull-request-review-protection

* If the functionality is not yet available in the API, it would be helpful if you
contacted support (https://support.github.com/) or posted in the Community Forum (https://github.community/). Please
include a link to the forum post if you create one or a copy of the response from support.

## New Feature

It'd be great if we could support the new `require_last_push_approval` for protected branches. I believe the only change might only be [this](https://gist.github.com/abhishekmukherg/4d87de6b6bfe47f8ac779b9a404c62e4) but needs to be tested

Frankly, I'm leveraging the github issue as a notepad for me to come back to later to test, because I researched this briefly a month ago and forgot to write notes, and this is the most reasonable place to put them

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.