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

Support for Branch Protection `bypassForcePushAllowances`

Open
#259 1 comment 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:

Available via current UI:
Screen Shot 2022-08-17 at 1 49 29 pm

## New Feature

Can safe-settings add support for specifying who can force push to a protected branch?
Currently we are only able to set `allow_force_pushes: true | false` for branch protection rules.

### API support
This does not appear to be supported by the [REST API](https://docs.github.com/en/rest/branches/branch-protection#update-branch-protection).

However, this is available via the [GraphQL API](https://docs.github.com/en/graphql/reference/objects#branchprotectionrule) as `bypassForcePushAllowances`

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.