Cant specify who can force push via github api or gh !! #148166
Replies: 3 comments
-
|
same issue: https://github.com/orgs/community/discussions/128770 |
Beta Was this translation helpful? Give feedback.
-
|
To specify which users or teams can force-push via the GitHub API, you must use the bypass_force_push_allowances parameter within the "Update branch protection" endpoint. API Implementation allow_force_pushes: Must be set to true to enable the feature. Key Requirements |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Show & Tell
Body
i Want to setup some branch protection rules and want to specify who can force push but github api only accepts boolean values.

What I am trying to do
This is very important in my workflow , either i need an api or cmd that can do this , can anyone help i want to integrate this step for a pipeline.
Beta Was this translation helpful? Give feedback.
All reactions