Commit d557dc4
authored
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
-------
1b767b3 fix: use new media type for branch protections
3e821c4 fix: set preview header for endpoints that require it only
ab9241e Revert "fix: use new media type for branch protections"1 parent c9ccb95 commit d557dc4
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
54 | 60 | | |
55 | 61 | | |
56 | 62 | | |
| |||
0 commit comments