You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 1, 2017. It is now read-only.
Copy file name to clipboardExpand all lines: content/changes/2015-11-2-protected-branches-api.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,16 @@ created_at: 2015-11-02
5
5
author_name:nakajima
6
6
---
7
7
8
-
We're starting a preview period for the[protected branches](https://github.com/blog/2051-protected-branches-and-required-status-checks) API.
8
+
We're starting a preview period for the[protected branches](https://github.com/blog/2051-protected-branches-and-required-status-checks) API. Protecting a branch prevents force-pushes to it as well as deleting it. You can also specify required status checks that are required to merge code into the branch.
9
+
10
+
To protect a branch, make a`PATCH` request to the URL of the branch: