Update branch protection REST api issue for "Specify who can force push" #128770
Replies: 4 comments
-
Any update on this please? |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Any update on this please? |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
In GitHub REST api (using curl) I'd like to update the branch protection's "Specify who can force push" portion.
Which json property in the PUT body below is for "Specify who can force push" from the screenshot above?
https://docs.github.com/en/enterprise-server@3.12/rest/branches/branch-protection?apiVersion=2022-11-28#update-branch-protection
It seems this functionality was added in the GitHub UI relatively recently, but the REST api and/or docs, perhaps, were not updated.
See https://github.blog/changelog/2021-12-21-specify-who-can-force-push-to-a-repository/
Versions used:
GitHub Enterprise Server 3.12.4
REST api, using cURL
Beta Was this translation helpful? Give feedback.
All reactions