Skip to content

Commit 59482c9

Browse files
authored
Include required_signatures in GH service branch protection method response (#24)
1 parent 72c8096 commit 59482c9

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.2.2
2+
3+
- [FIXED] Github service branch protection method now returns "required_signatures" content.
4+
15
# 1.2.1
26

37
- [FIXED] Notifier `msg_` methods are now accurately found based on check `test_` method names.

compliance/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
# limitations under the License.
1515
"""Compliance automation package."""
1616

17-
__version__ = '1.2.1'
17+
__version__ = '1.2.2'

compliance/utils/services/github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ def get_branch_protection_details(self, repo, branch='master'):
528528
:returns: the repository branch's branch protection details.
529529
"""
530530
self.session.headers.update(
531-
{'Accept': 'application/vnd.github.luke-cage-preview+json'}
531+
{'Accept': 'application/vnd.github.zzzax-preview+json'}
532532
)
533533
return self._make_request(
534534
'get', f'repos/{repo}/branches/{branch}/protection'

0 commit comments

Comments
 (0)