bug #881 fix: use new media type for branch protections (iBotPeaches)
bug #881 fix: use new media type for branch protections (iBotPeaches)

This PR was squashed before being merged into the 2.15.x-dev branch.

Discussion
----------

Not sure when this changed, but `loki` is not the preview anymore. It is `luke-cage`. Without this fix you won't get back branch protection values. (like required amount of reviewers).

https://developer.github.com/v3/repos/branches/#get-branch-protection

If you need to support commit signature crud, that has a different media type under Protections, but I don't see that supported at this time.

Commits
-------

1b767b3786b76f4ca2b44e24b31f4449e2880ff3 fix: use new media type for branch protections
3e821c405cd9641b8db6582890e3ec0a1ce09f19 fix: set preview header for endpoints that require it only
ab9241ef9b57d3ba7ebaae9bbefbe6c85390dac2 Revert "fix: use new media type for branch protections"

acrobat/php-github-api,KnpLabs/php-github-api