@@ -14,17 +14,6 @@ fail unless the that commit (or another commit with the same [Git tree][tree])
1414has a [ Status] [ statuses ] in the ` success ` state for each required status
1515check.
1616
17- Required status checks can be used for more than just ensuring your branch
18- passes Continuous Integration tests before merging. For example, you could
19- write a Status integration that only posts a ` success ` Status when the pull
20- request’s author has signed your project’s Contributor License Agreement. Or
21- you could write one that only posts a ` success ` Status when three or more
22- members of your ` @initech/senior-engineers ` team have left a comment saying
23- they’ve reviewed the changes. Combined with required status checks,
24- integrations like these can help contributors to follow your project’s
25- conventions. See our [ Status API guide] [ guide ] to learn how to create
26- integrations like these.
27-
2817These restrictions apply to branch manipulations performed via the GitHub API
2918as well. So when you protect a branch, you will no longer be able to [ delete
3019the branch] [ delete ] via the API or perform [ update it] [ update ] to point at a
@@ -46,6 +35,17 @@ HTTP/1.1 422 Unprocessable Entity
4635}
4736</pre >
4837
38+ Protected branches and required status checks are a great way to ensure your
39+ project’s conventions are followed. For example, you could write a Status
40+ integration that only posts a ` success ` Status when the pull request’s author
41+ has signed your project’s Contributor License Agreement. Or you could write one
42+ that only posts a ` success ` Status when three or more members of your
43+ ` @initech/senior-engineers ` team have left a comment saying they’ve reviewed
44+ the changes. If you configure these integrations as required status checks, you
45+ can be sure that these conditions have been satisfied before a pull request is
46+ merged. See our [ Status API guide] [ guide ] to learn how to create integrations
47+ like these.
48+
4949If you have any questions, please [ let us know] [ contact ] .
5050
5151[ blog ] : https://github.com/blog/2051-protected-branches-and-required-status-checks
0 commit comments