See https://developer.github.com/changes/2015-11-11-protected-branches-api/
and
https://developer.github.com/v3/repos/#enabling-and-disabling-branch-protection
Admittedly, this is a beta feature, but would certainly be nice to modify the protected status and protection context automatically from, say, a Jenkins job.
This is also available for GHE as of v2.5
See https://developer.github.com/changes/2015-11-11-protected-branches-api/
and
https://developer.github.com/v3/repos/#enabling-and-disabling-branch-protection
Admittedly, this is a beta feature, but would certainly be nice to modify the protected status and protection context automatically from, say, a Jenkins job.
This is also available for GHE as of v2.5