Skip to content

Commit

Permalink
Fix backport records behaviour with group check setting (#1384)
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Feb 1, 2022
1 parent da9a912 commit 5cd1c21
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions commands/backport_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@ def backport_records(event, context, **kwargs):

has_autoapproval = not signed_dest[0].get(
"to_review_enabled", signer_config["to_review_enabled"]
) and not signed_dest[0].get(
"group_check_enabled", signer_config["group_check_enabled"]
)
if has_autoapproval:
# Approve the changes.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_backport_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def test_pending_changes(self):
"capabilities": {
"signer": {
"to_review_enabled": False,
"group_check_enabled": False,
"group_check_enabled": True,
"resources": [
{
"source": {
Expand Down

0 comments on commit 5cd1c21

Please sign in to comment.